mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-20 14:51:15 +00:00
SetSavePath 100% match
This commit is contained in:
parent
d64a04705c
commit
60ff012dfb
@ -1,4 +1,5 @@
|
||||
#include "legogamestate.h"
|
||||
#include "legoomni.h"
|
||||
|
||||
// OFFSET: LEGO1 0x10039550
|
||||
LegoGameState::LegoGameState()
|
||||
@ -39,7 +40,19 @@ void LegoGameState::SerializeScoreHistory(MxS16 p)
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x10039f00
|
||||
void LegoGameState::SetSavePath(char *p)
|
||||
void LegoGameState::SetSavePath(char *p_SavePath)
|
||||
{
|
||||
// TODO
|
||||
if (m_SavePath != NULL)
|
||||
{
|
||||
delete[] m_SavePath;
|
||||
}
|
||||
if (p_SavePath)
|
||||
{
|
||||
m_SavePath = new char[strlen(p_SavePath) + 1];
|
||||
strcpy(m_SavePath, p_SavePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_SavePath = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
@ -13,6 +13,9 @@ class LegoGameState
|
||||
__declspec(dllexport) void SerializePlayersInfo(MxS16 p);
|
||||
__declspec(dllexport) void SerializeScoreHistory(MxS16 p);
|
||||
__declspec(dllexport) void SetSavePath(char *p);
|
||||
|
||||
private:
|
||||
char *m_SavePath;
|
||||
};
|
||||
|
||||
#endif // LEGOGAMESTATE_H
|
||||
|
||||
Loading…
Reference in New Issue
Block a user