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 24eac64..cb83fd9 100644 (file)
@@ -17,6 +17,8 @@
 #define SIG_MZ1E30_IRQ 0
 #define SIG_MZ1E30_DRQ 1
 
+namespace MZ2500 {
+
 class MZ1E30 : public DEVICE
 {
 private:
@@ -46,9 +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 decl_state();
-       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)
@@ -57,5 +57,6 @@ public:
        }
 };
 
+}
 #endif