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 / mz700 / ramfile.cpp
index b29ac00..ee3f5d7 100644 (file)
@@ -99,3 +99,15 @@ bool RAMFILE::load_state(FILEIO* state_fio)
        return true;
 }
 
+bool RAMFILE::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->StateBuffer(data_buffer, DATA_SIZE, 1);
+       state_fio->StateUint32(data_addr);
+       return true;
+}