mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-21 07:11:16 +00:00
SetSavePath 100% match
This commit is contained in:
parent
d64a04705c
commit
60ff012dfb
@ -1,4 +1,5 @@
|
|||||||
#include "legogamestate.h"
|
#include "legogamestate.h"
|
||||||
|
#include "legoomni.h"
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x10039550
|
// OFFSET: LEGO1 0x10039550
|
||||||
LegoGameState::LegoGameState()
|
LegoGameState::LegoGameState()
|
||||||
@ -39,7 +40,19 @@ void LegoGameState::SerializeScoreHistory(MxS16 p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// OFFSET: LEGO1 0x10039f00
|
// 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 SerializePlayersInfo(MxS16 p);
|
||||||
__declspec(dllexport) void SerializeScoreHistory(MxS16 p);
|
__declspec(dllexport) void SerializeScoreHistory(MxS16 p);
|
||||||
__declspec(dllexport) void SetSavePath(char *p);
|
__declspec(dllexport) void SetSavePath(char *p);
|
||||||
|
|
||||||
|
private:
|
||||||
|
char *m_SavePath;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // LEGOGAMESTATE_H
|
#endif // LEGOGAMESTATE_H
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user