OSDN Git Service

[VM][WIP] Use namespace to devices per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / mz2500 / mz1e30.h
index 5fcfe76..cb83fd9 100644 (file)
@@ -17,6 +17,8 @@
 #define SIG_MZ1E30_IRQ 0
 #define SIG_MZ1E30_DRQ 1
 
+namespace MZ2500 {
+
 class MZ1E30 : public DEVICE
 {
 private:
@@ -31,7 +33,7 @@ private:
        bool drq_status;
        
 public:
-       MZ1E30(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
+       MZ1E30(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
        {
                set_device_name(_T("MZ-1E30 (SASI I/F)"));
        }
@@ -46,8 +48,7 @@ public:
        void write_dma_io8(uint32_t addr, uint32_t data);
        uint32_t read_dma_io8(uint32_t addr);
        void write_signal(int id, uint32_t data, uint32_t mask);
-       void save_state(FILEIO* state_fio);
-       bool load_state(FILEIO* state_fio);
+       bool process_state(FILEIO* state_fio, bool loading);
        
        // unique function
        void set_context_host(DEVICE* device)
@@ -56,5 +57,6 @@ public:
        }
 };
 
+}
 #endif