OSDN Git Service

[VM][WIP] Use namespace to devices per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz2500 / mz1r12.h
index c09e14b..d29429c 100644 (file)
@@ -15,6 +15,8 @@
 #include "../../emu.h"
 #include "../device.h"
 
+namespace MZ2500 {
+
 class MZ1R12 : public DEVICE
 {
 private:
@@ -24,10 +26,9 @@ private:
        uint32_t crc32;
        
 public:
-       MZ1R12(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {
-#if defined(_USE_QT)           
-               set_device_name(_T("MZ-1R12 32KB SRAM"));
-#endif
+       MZ1R12(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
+       {
+               set_device_name(_T("MZ-1R12 (32KB SRAM)"));
        }
        ~MZ1R12() {}
        
@@ -36,9 +37,9 @@ public:
        void release();
        void write_io8(uint32_t addr, uint32_t data);
        uint32_t read_io8(uint32_t addr);
-       void save_state(FILEIO* state_fio);
-       bool load_state(FILEIO* state_fio);
+       bool process_state(FILEIO* state_fio, bool loading);
 };
 
+}
 #endif