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 / pv2000 / printer.cpp
index a194e1c..a463c75 100644 (file)
@@ -90,3 +90,17 @@ bool PRINTER::load_state(FILEIO* state_fio)
        return true;
 }
 
+bool PRINTER::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(out);
+       state_fio->StateUint8(ctrl0);
+       state_fio->StateUint8(ctrl1);
+       state_fio->StateBool(busy);
+       return true;
+}