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 / multi8 / cmt.cpp
index ca10b41..ecf7970 100644 (file)
@@ -109,10 +109,10 @@ bool CMT::process_state(FILEIO* state_fio, bool loading)
        if(!state_fio->StateCheckInt32(this_device_id)) {
                return false;
        }
-       state_fio->StateBool(play);
-       state_fio->StateBool(rec);
-       state_fio->StateBool(remote);
-       state_fio->StateBuffer(rec_file_path, sizeof(rec_file_path), 1);
+       state_fio->StateValue(play);
+       state_fio->StateValue(rec);
+       state_fio->StateValue(remote);
+       state_fio->StateArray(rec_file_path, sizeof(rec_file_path), 1);
        if(loading) {
                int length_tmp = state_fio->FgetInt32_LE();
                if(rec) {
@@ -143,8 +143,8 @@ bool CMT::process_state(FILEIO* state_fio, bool loading)
                        state_fio->FputInt32_LE(0);
                }
        }
-       state_fio->StateInt32(bufcnt);
-       state_fio->StateBuffer(buffer, sizeof(buffer), 1);
+       state_fio->StateValue(bufcnt);
+       state_fio->StateArray(buffer, sizeof(buffer), 1);
        return true;
 }