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 / msx / scc.cpp
index ef9be3f..c5947dc 100644 (file)
@@ -665,3 +665,14 @@ void SCC::save_load_state(FILEIO* state_fio, bool is_save)
        return;
 }
 
+bool SCC::process_state(FILEIO* state_fio, bool loading)
+{
+       if(!state_fio->StateCheckUint32(STATE_VERSION)) {
+               return false;
+       }
+       if(!state_fio->StateCheckInt32(this_device_id)) {
+               return false;
+       }
+       save_load_state(state_fio, !loading);
+       return true;
+}