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 / rampac2.cpp
index 3d7de9d..ca14437 100644 (file)
@@ -140,3 +140,14 @@ bool RAMPAC2::load_state(FILEIO* state_fio)
        return true;
 }
 
+bool RAMPAC2::process_state(FILEIO* state_fio, bool loading)
+{
+       if(!state_fio->StateCheckUint32(STATE_VERSION)) {
+               return false;
+       }
+       state_fio->StateBuffer(ram, sizeof(ram), 1);
+       state_fio->StateUint32(ptr);
+       state_fio->StateBool(opened);
+       state_fio->StateBool(modified);
+       return true;
+}