Skip to content

Commit 19d62d2

Browse files
Oops, forgot to constify GBASAV Slots.
1 parent 003bac2 commit 19d62d2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

include/gba/GBASav.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ namespace S2Editor {
3939

4040
void ValidationCheck();
4141

42-
bool SlotExist(const uint8_t Slot);
42+
bool SlotExist(const uint8_t Slot) const;
4343

4444
/* Core Returns and Actions. */
45-
std::unique_ptr<GBASlot> Slot(const uint8_t Slot);
45+
std::unique_ptr<GBASlot> Slot(const uint8_t Slot) const;
4646
std::unique_ptr<GBASettings> Settings() const;
4747
void Finish();
4848

source/gba/GBASav.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ namespace S2Editor {
9696
9797
const uint8_t Slot: The Slot to check.
9898
*/
99-
bool GBASAV::SlotExist(const uint8_t Slot) {
99+
bool GBASAV::SlotExist(const uint8_t Slot) const {
100100
if (Slot < 1 || Slot > 4 || !this->GetValid()) return false;
101101

102102
for (uint8_t Idx = 0; Idx < 10; Idx++) {
@@ -111,7 +111,7 @@ namespace S2Editor {
111111
112112
const uint8_t Slot: The GBASAV Slot ( 1 - 4 ).
113113
*/
114-
std::unique_ptr<GBASlot> GBASAV::Slot(const uint8_t Slot) {
114+
std::unique_ptr<GBASlot> GBASAV::Slot(const uint8_t Slot) const {
115115
if (!this->SlotExist(Slot)) return nullptr;
116116

117117
return std::make_unique<GBASlot>(Slot);

0 commit comments

Comments
 (0)