File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments