mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Move Read/Write functions to LegoStorage
base class, match Act1State::Serialize
(#1335)
* Move Read/Write function to LegoStorage base class * Proper const use for vector / BETA match * Match `Act1State::Serialize`
This commit is contained in:

committed by
GitHub

parent
77a3dc0795
commit
70b0f76fa1
@@ -209,15 +209,15 @@ PoliceState::PoliceState()
|
||||
|
||||
// FUNCTION: LEGO1 0x1005e990
|
||||
// FUNCTION: BETA10 0x100f08b0
|
||||
MxResult PoliceState::Serialize(LegoFile* p_file)
|
||||
MxResult PoliceState::Serialize(LegoStorage* p_storage)
|
||||
{
|
||||
LegoState::Serialize(p_file);
|
||||
LegoState::Serialize(p_storage);
|
||||
|
||||
if (p_file->IsReadMode()) {
|
||||
p_file->Read((MxS32&) m_policeScript);
|
||||
if (p_storage->IsReadMode()) {
|
||||
p_storage->ReadS32((MxS32&) m_policeScript);
|
||||
}
|
||||
else {
|
||||
p_file->Write((MxS32) m_policeScript);
|
||||
p_storage->WriteS32(m_policeScript);
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
|
Reference in New Issue
Block a user