OSDN Git Service

[VM][State] Apply new state framework to some VMs.
[csp-qt/common_source_project-fm7.git] / source / src / vm / bubcom80 / rtc.h
index da69a65..2cb3c32 100644 (file)
@@ -22,7 +22,7 @@ private:
        uint8_t ctrl;
        
 public:
-       RTC(VM* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
+       RTC(VM_TEMPLATE* parent_vm, EMU* parent_emu) : DEVICE(parent_vm, parent_emu)
        {
                set_device_name(_T("RTC"));
        }
@@ -34,8 +34,7 @@ public:
        void write_io8(uint32_t addr, uint32_t data);
        uint32_t read_io8(uint32_t addr);
        void event_callback(int event_id, int err);
-       void save_state(FILEIO* state_fio);
-       bool load_state(FILEIO* state_fio);
+       bool process_state(FILEIO* state_fio, bool loading);
 };
 
 #endif