fix naming convention

This commit is contained in:
Misha 2023-07-03 18:38:22 +03:00
parent 60ff012dfb
commit b1c138a22f
2 changed files with 8 additions and 8 deletions

View File

@ -40,19 +40,19 @@ void LegoGameState::SerializeScoreHistory(MxS16 p)
} }
// OFFSET: LEGO1 0x10039f00 // OFFSET: LEGO1 0x10039f00
void LegoGameState::SetSavePath(char *p_SavePath) void LegoGameState::SetSavePath(char *p_savePath)
{ {
if (m_SavePath != NULL) if (m_savePath != NULL)
{ {
delete[] m_SavePath; delete[] m_savePath;
} }
if (p_SavePath) if (p_savePath)
{ {
m_SavePath = new char[strlen(p_SavePath) + 1]; m_savePath = new char[strlen(p_savePath) + 1];
strcpy(m_SavePath, p_SavePath); strcpy(m_savePath, p_savePath);
} }
else else
{ {
m_SavePath = NULL; m_savePath = NULL;
} }
} }

View File

@ -15,7 +15,7 @@ class LegoGameState
__declspec(dllexport) void SetSavePath(char *p); __declspec(dllexport) void SetSavePath(char *p);
private: private:
char *m_SavePath; char *m_savePath;
}; };
#endif // LEGOGAMESTATE_H #endif // LEGOGAMESTATE_H