OSDN Git Service

[VM][General][WIP] Start to merge upstream 2018-10-14.Open branch upstream_20181014 .
[csp-qt/common_source_project-fm7.git] / source / src / vm / fmr50 / cmos.cpp
index f9585b4..c52a26d 100644 (file)
@@ -78,9 +78,9 @@ bool CMOS::process_state(FILEIO* state_fio, bool loading)
        if(!state_fio->StateCheckInt32(this_device_id)) {
                return false;
        }
-       state_fio->StateBuffer(cmos, sizeof(cmos), 1);
-       state_fio->StateBool(modified);
-       state_fio->StateUint8(bank);
+       state_fio->StateArray(&cmos[0][0], sizeof(cmos), 1);
+       state_fio->StateValue(modified);
+       state_fio->StateValue(bank);
        return true;
 }