OSDN Git Service

[VM][WIP] Use namespace to devices per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / multi8 / floppy.h
index f3df6df..f633e38 100644 (file)
@@ -16,6 +16,8 @@
 
 #define SIG_FLOPPY_DRQ 0
 
+namespace MULTI8 {
+
 class FLOPPY : public DEVICE
 {
 private:
@@ -23,7 +25,7 @@ private:
        bool drq;
        
 public:
-       FLOPPY(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
+       FLOPPY(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
        {
                set_device_name(_T("Floppy I/F"));
        }
@@ -33,9 +35,7 @@ public:
        void write_io8(uint32_t addr, uint32_t data);
        uint32_t read_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_fdc(DEVICE* device)
@@ -44,5 +44,6 @@ public:
        }
 };
 
+}
 #endif