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 / pv1000 / joystick.cpp
index dd2d9ab..fac275a 100644 (file)
@@ -130,3 +130,15 @@ bool JOYSTICK::load_state(FILEIO* state_fio)
        return true;
 }
 
+bool JOYSTICK::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->StateUint8(column);
+       state_fio->StateUint8(status);
+       return true;
+}