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 / tk80bs / membus.cpp
index 3b46bd8..3aecc1b 100644 (file)
@@ -92,3 +92,17 @@ bool MEMBUS::load_state(FILEIO* state_fio)
 //#endif
        return MEMORY::load_state(state_fio);
 }
+bool MEMBUS::process_state(FILEIO* state_fio, bool loading)
+{
+       if(!state_fio->StateCheckUint32(STATE_VERSION)) {
+               return false;
+       }
+       if(!state_fio->StateCheckInt32(this_device_id)) {
+               return false;
+       }
+#if defined(_TK85)
+       state_fio->StateUint32(pc7);
+       state_fio->StateUint32(count);
+#endif
+       return MEMORY::process_state(state_fio, loading);
+}