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 / kanjipac2.cpp
index dcc4ef6..cc42759 100644 (file)
@@ -82,3 +82,11 @@ bool KANJIPAC2::load_state(FILEIO* state_fio)
        return true;
 }
 
+bool KANJIPAC2::process_state(FILEIO* state_fio, bool loading)
+{
+       if(!state_fio->StateCheckUint32(STATE_VERSION)) {
+               return false;
+       }
+       state_fio->StateUint32(ptr);
+       return true;
+}