OSDN Git Service

[VM][STATE] Use namespace {VMNAME} to separate per VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / pc6001 / psub.h
index 9abd6a9..94d1bb4 100644 (file)
@@ -20,6 +20,8 @@
 
 class FILEIO;
 
+namespace PC6001 {
+
 class PSUB : public DEVICE
 {
 private:
@@ -52,7 +54,10 @@ private:
        void update_keyboard();
        
 public:
-       PSUB(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu) {}
+       PSUB(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
+       {
+               set_device_name(_T("Pseudo Sub System"));
+       }
        ~PSUB() {}
        
        // common functions
@@ -64,8 +69,7 @@ public:
        void event_frame();
        void event_callback(int event_id, int err);
        uint32_t get_intr_ack();
-       void save_state(FILEIO* state_fio);
-       bool load_state(FILEIO* state_fio);
+       bool process_state(FILEIO* state_fio, bool loading);
        
        // unique functions
        void set_context_pio(DEVICE* device)
@@ -86,4 +90,6 @@ public:
        void key_down(int code);
        void key_up(int code);
 };
+
+}
 #endif