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 / rx78 / memory.cpp
index 2ebd64f..59d64e6 100644 (file)
@@ -147,12 +147,12 @@ bool MEMORY::process_state(FILEIO* state_fio, bool loading)
        if(!state_fio->StateCheckInt32(this_device_id)) {
                return false;
        }
-       state_fio->StateBuffer(ram, sizeof(ram), 1);
-       state_fio->StateBuffer(ext, sizeof(ext), 1);
-       state_fio->StateBuffer(vram, sizeof(vram), 1);
-       state_fio->StateInt32(rpage);
-       state_fio->StateInt32(wpage);
-       state_fio->StateBool(inserted);
+       state_fio->StateArray(ram, sizeof(ram), 1);
+       state_fio->StateArray(ext, sizeof(ext), 1);
+       state_fio->StateArray(vram, sizeof(vram), 1);
+       state_fio->StateValue(rpage);
+       state_fio->StateValue(wpage);
+       state_fio->StateValue(inserted);
        return true;
 }