OSDN Git Service

[VM][WIP] Use namespace to devices per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz2500 / mz1r13.h
index 556e96f..f03ff5a 100644 (file)
@@ -16,6 +16,8 @@
 #include "../../emu.h"
 #include "../device.h"
 
+namespace MZ2500 {
+
 class MZ1R13 : public DEVICE
 {
 private:
@@ -26,10 +28,9 @@ private:
        bool select_kanji;
        
 public:
-       MZ1R13(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {
-#if defined(_USE_QT)           
-               set_device_name(_T("MZ-1R13 KANJI ROM"));
-#endif
+       MZ1R13(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
+       {
+               set_device_name(_T("MZ-1R13 (KANJI ROM)"));
        }
        ~MZ1R13() {}
        
@@ -37,9 +38,8 @@ public:
        void initialize();
        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