@@ -42,6 +42,7 @@ namespace S2Editor {
4242
4343 void ValidationCheck ();
4444 bool SlotExist (const uint8_t Slot) const ;
45+ void SetChangesMade (const bool V) { this ->ChangesMade = V; };
4546 void Finish ();
4647
4748 /* GBA Core returns. */
@@ -52,15 +53,16 @@ namespace S2Editor {
5253 std::unique_ptr<NDSSlot> _NDSSlot (const uint8_t Slot) const ;
5354 std::unique_ptr<NDSPainting> _NDSPainting (const uint8_t Idx) const ;
5455
55- /* Some Returns . */
56+ /* Some basic returns . */
5657 uint32_t GetSize () const { return this ->SavSize ; };
5758 uint8_t *GetData () const { return this ->SavData .get (); };
5859 SavType GetType () const { return this ->SType ; };
59- NDSSavRegion GetRegion () const { return this ->Region ; };
60- bool GetValid () const { return this ->SavValid ; };
6160 bool GetChangesMade () const { return this ->ChangesMade ; };
62- void SetChangesMade ( const bool V) { this ->ChangesMade = V ; };
61+ bool GetValid () const { return this ->SavValid ; };
6362 std::string GetPath () const { return this ->SavPath ; };
63+
64+ /* NDS returns. */
65+ NDSSavRegion GetRegion () const { return this ->Region ; };
6466 private:
6567 /* Some basic vars. */
6668 std::unique_ptr<uint8_t []> SavData = nullptr ;
@@ -77,8 +79,8 @@ namespace S2Editor {
7779 int8_t InitNDSSlotIdxs (const uint8_t SavSlot, const uint8_t Reg);
7880
7981 /* Identifiers to check for Savetypes. */
80- static constexpr uint8_t GBAIdent[7 ] = { 0x53 , 0x54 , 0x57 , 0x4E , 0x30 , 0x32 , 0x34 };
81- static constexpr uint8_t NDSIdent[8 ] = { 0x64 , 0x61 , 0x74 , 0x0 , 0x1F , 0x0 , 0x0 , 0x0 };
82+ static constexpr uint8_t GBAIdent[0x7 ] = { 0x53 , 0x54 , 0x57 , 0x4E , 0x30 , 0x32 , 0x34 };
83+ static constexpr uint8_t NDSIdent[0x8 ] = { 0x64 , 0x61 , 0x74 , 0x0 , 0x1F , 0x0 , 0x0 , 0x0 };
8284 };
8385};
8486
0 commit comments