mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-26 18:04:06 +00:00
Match LegoGameState::Username::Serialize
This commit is contained in:
@@ -111,7 +111,7 @@ public:
|
||||
Username(Username& p_other) { Set(p_other); }
|
||||
void Set(Username& p_other) { memcpy(m_letters, p_other.m_letters, sizeof(m_letters)); }
|
||||
|
||||
MxResult Serialize(LegoStorage* p_storage);
|
||||
MxResult Serialize(LegoFile* p_file);
|
||||
Username& operator=(const Username& p_other);
|
||||
|
||||
MxS16 m_letters[7]; // 0x00
|
||||
|
||||
@@ -1153,16 +1153,16 @@ LegoGameState::Username::Username()
|
||||
|
||||
// FUNCTION: LEGO1 0x1003c690
|
||||
// FUNCTION: BETA10 0x10086c57
|
||||
MxResult LegoGameState::Username::Serialize(LegoStorage* p_storage)
|
||||
MxResult LegoGameState::Username::Serialize(LegoFile* p_file)
|
||||
{
|
||||
if (p_storage->IsReadMode()) {
|
||||
if (p_file->IsReadMode()) {
|
||||
for (MxS16 i = 0; i < (MxS16) sizeOfArray(m_letters); i++) {
|
||||
Read(p_storage, &m_letters[i]);
|
||||
p_file->Read(m_letters[i]);
|
||||
}
|
||||
}
|
||||
else if (p_storage->IsWriteMode()) {
|
||||
else if (p_file->IsWriteMode()) {
|
||||
for (MxS16 i = 0; i < (MxS16) sizeOfArray(m_letters); i++) {
|
||||
Write(p_storage, m_letters[i]);
|
||||
p_file->Write(m_letters[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user