OSDN Git Service

[VM][WIP] Pre-process to apply new state framework.Still not buildable.
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz2500 / mz1r13.cpp
index 311a0f6..33e9821 100644 (file)
@@ -116,3 +116,15 @@ bool MZ1R13::load_state(FILEIO* state_fio)
        return true;
 }
 
+bool MZ1R13::process_state(FILEIO* state_fio, bool loading)
+{
+       if(!state_fio->StateCheckUint32(STATE_VERSION)) {
+               return false;
+       }
+       if(!state_fio->StateCheckInt32(this_device_id)) {
+               return false;
+       }
+       state_fio->StateUint16(address);
+       state_fio->StateBool(select_kanji);
+       return true;
+}