Some improvements to LegoGameState (#1353)

* Beta match ReadVariable and WriteVariable

* Change param type for GetFileSavePath

* Remove copy constructor for LegoGameState::Username
This commit is contained in:
MS
2025-01-19 15:34:06 -05:00
committed by GitHub
parent 2b6b34f6fd
commit 038ec6b2ec
2 changed files with 57 additions and 30 deletions

View File

@@ -135,7 +135,6 @@ public:
// SIZE 0x0e
struct Username {
Username();
Username(Username& p_other) { Set(p_other); }
void Set(Username& p_other) { memcpy(m_letters, p_other.m_letters, sizeof(m_letters)); }
MxResult Serialize(LegoStorage* p_storage);
@@ -193,7 +192,7 @@ public:
LegoState* GetState(const char* p_stateName);
LegoState* CreateState(const char* p_stateName);
void GetFileSavePath(MxString* p_outPath, MxU8 p_slotn);
void GetFileSavePath(MxString* p_outPath, MxS16 p_slotn);
void StopArea(Area p_area);
void SwitchArea(Area p_area);
void Init();