mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-15 20:20:54 +00:00
- Exhumed: wrap all serialized game data into another JSON object
# Conflicts: # source/exhumed/src/save.cpp
This commit is contained in:
parent
f9866f4a21
commit
1b2895bee6
1 changed files with 3 additions and 0 deletions
|
@ -59,6 +59,8 @@ bool GameInterface::SaveGame()
|
||||||
|
|
||||||
void GameInterface::SerializeGameState(FSerializer& arc)
|
void GameInterface::SerializeGameState(FSerializer& arc)
|
||||||
{
|
{
|
||||||
|
if (arc.BeginObject("exhumed"))
|
||||||
|
{
|
||||||
SerializeSwitch(arc);
|
SerializeSwitch(arc);
|
||||||
SerializeView(arc);
|
SerializeView(arc);
|
||||||
|
|
||||||
|
@ -74,6 +76,7 @@ void GameInterface::SerializeGameState(FSerializer& arc)
|
||||||
SerializeSet(arc);
|
SerializeSet(arc);
|
||||||
SerializeSpider(arc);
|
SerializeSpider(arc);
|
||||||
SerializeWasp(arc);
|
SerializeWasp(arc);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool GameInterface::LoadGame()
|
bool GameInterface::LoadGame()
|
||||||
|
|
Loading…
Reference in a new issue