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 / qc10 / mfont.cpp
index bf592bc..2477c8a 100644 (file)
@@ -145,3 +145,20 @@ bool MFONT::load_state(FILEIO* state_fio)
        return true;
 }
 
+bool MFONT::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(status);
+       if(!cmd->process_state((void *)state_fio, loading)) {
+               return false;
+       }
+       if(!res->process_state((void *)state_fio, loading)) {
+               return false;
+       }
+       return true;
+}