OSDN Git Service

[VM][DEVICE][WIP] Updating State functions.Still cause FTBFS.
[csp-qt/common_source_project-fm7.git] / source / src / vm / hd146818p.cpp
index 57f5346..aa8c4c9 100644 (file)
@@ -233,14 +233,14 @@ bool HD146818P::process_state(FILEIO* state_fio, bool loading)
        if(!cur_time.process_state((void *)state_fio, loading)) {
                return false;
        }
-       state_fio->StateInt32(register_id_1sec);
-       state_fio->StateBuffer(regs, sizeof(regs), 1);
-       state_fio->StateInt32(ch);
-       state_fio->StateInt32(period);
-       state_fio->StateInt32(register_id_sqw);
-       state_fio->StateBool(intr);
-       state_fio->StateBool(sqw);
-       state_fio->StateBool(modified);
+       state_fio->StateValue(register_id_1sec);
+       state_fio->StateArray(regs, sizeof(regs), 1);
+       state_fio->StateValue(ch);
+       state_fio->StateValue(period);
+       state_fio->StateValue(register_id_sqw);
+       state_fio->StateValue(intr);
+       state_fio->StateValue(sqw);
+       state_fio->StateValue(modified);
        return true;
 }