Fix writing/reading of game state (#834)

* Fix writing/reading of game state

* Match existing state serialization functions
This commit is contained in:
Christian Semmler
2024-04-21 09:42:08 -04:00
committed by GitHub
parent 26f2dd1e5f
commit c9db98c4c3
42 changed files with 71 additions and 79 deletions

View File

@@ -45,13 +45,13 @@ void LegoBuildingManager::FUN_1002fb30()
}
// STUB: LEGO1 0x1002fb80
MxResult LegoBuildingManager::Save(LegoStorage* p_storage)
MxResult LegoBuildingManager::Write(LegoStorage* p_storage)
{
return SUCCESS;
}
// STUB: LEGO1 0x1002fc10
MxResult LegoBuildingManager::Load(LegoStorage* p_storage)
MxResult LegoBuildingManager::Read(LegoStorage* p_storage)
{
return SUCCESS;
}

View File

@@ -15,8 +15,8 @@ LegoVehicleBuildState::LegoVehicleBuildState(char* p_classType)
}
// STUB: LEGO1 0x10026120
MxResult LegoVehicleBuildState::VTable0x1c(LegoFile* p_legoFile)
MxResult LegoVehicleBuildState::Serialize(LegoFile* p_legoFile)
{
// TODO
return SUCCESS;
return LegoState::Serialize(p_legoFile);
}