OSDN Git Service

[VM] Add PC-8001/mk2/8801/mk2.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pv2000 / cmt.cpp
index 5840d2d..6117e09 100644 (file)
@@ -9,6 +9,8 @@
 
 #include "cmt.h"
 
+namespace PV2000 {
+
 void CMT::initialize()
 {
        fio = new FILEIO();
@@ -139,11 +141,13 @@ bool CMT::process_state(FILEIO* state_fio, bool loading)
        if(!state_fio->StateCheckInt32(this_device_id)) {
                return false;
        }
-       state_fio->StateInt32(bufcnt);
-       state_fio->StateBuffer(buffer, sizeof(buffer), 1);
-       state_fio->StateBool(play);
-       state_fio->StateBool(rec);
-       state_fio->StateUint8(start);
-       state_fio->StateUint8(bit);
+       state_fio->StateValue(bufcnt);
+       state_fio->StateArray(buffer, sizeof(buffer), 1);
+       state_fio->StateValue(play);
+       state_fio->StateValue(rec);
+       state_fio->StateValue(start);
+       state_fio->StateValue(bit);
        return true;
 }
+
+}