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 / pasopia7 / iobus.cpp
index 89e56ac..27263d3 100644 (file)
@@ -82,3 +82,14 @@ bool IOBUS::load_state(FILEIO* state_fio)
        return true;
 }
 
+bool IOBUS::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->StateBool(mio);
+       return true;
+}