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 0e2e613..d29429c 100644 (file)
@@ -15,6 +15,8 @@
 #include "../../emu.h"
 #include "../device.h"
 
+namespace MZ2500 {
+
 class MZ1R12 : public DEVICE
 {
 private:
@@ -24,7 +26,10 @@ private:
        uint32_t crc32;
        
 public:
-       MZ1R12(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
+       MZ1R12(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
+       {
+               set_device_name(_T("MZ-1R12 (32KB SRAM)"));
+       }
        ~MZ1R12() {}
        
        // common functions
@@ -32,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