Use MxResult as a return type for Serialize

This commit is contained in:
Christian Semmler 2024-02-02 19:54:13 -05:00
parent b99b2f325b
commit cdecd8ea00

View File

@ -56,7 +56,7 @@ class Act1State : public LegoState {
inline const MxString* GetName() const { return &m_name; } inline const MxString* GetName() const { return &m_name; }
// FUNCTION: LEGO1 0x100344d0 // FUNCTION: LEGO1 0x100344d0
MxS32 Serialize(LegoFile* p_file) MxResult Serialize(LegoFile* p_file)
{ {
if (p_file->IsWriteMode()) { if (p_file->IsWriteMode()) {
p_file->FUN_10006030(m_name); p_file->FUN_10006030(m_name);
@ -71,7 +71,7 @@ class Act1State : public LegoState {
p_file->ReadVector3(m_point3); p_file->ReadVector3(m_point3);
} }
return 0; return SUCCESS;
} }
private: private: