mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-27 02:14:18 +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
@@ -118,18 +118,18 @@ MxU32 PizzeriaState::NextAction()
|
||||
|
||||
// FUNCTION: LEGO1 0x10017da0
|
||||
// FUNCTION: BETA10 0x100efe33
|
||||
MxResult PizzeriaState::Serialize(LegoFile* p_file)
|
||||
MxResult PizzeriaState::Serialize(LegoStorage* p_storage)
|
||||
{
|
||||
MxResult res = LegoState::Serialize(p_file);
|
||||
MxResult res = LegoState::Serialize(p_storage);
|
||||
|
||||
if (p_file->IsReadMode()) {
|
||||
if (p_storage->IsReadMode()) {
|
||||
for (MxS16 i = 0; i < 5; i++) {
|
||||
p_file->Read(m_unk0x08[i].m_nextIndex);
|
||||
p_storage->ReadS16(m_unk0x08[i].m_nextIndex);
|
||||
}
|
||||
}
|
||||
else {
|
||||
for (MxS16 i = 0; i < 5; i++) {
|
||||
p_file->Write(m_unk0x08[i].m_nextIndex);
|
||||
p_storage->WriteS16(m_unk0x08[i].m_nextIndex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user