OSDN Git Service

[VM][STATE] Apply new state framework to some devices a lot (excepts some devices...
[csp-qt/common_source_project-fm7.git] / source / src / vm / prnfile.h
index 0d1e279..54c90be 100644 (file)
@@ -10,8 +10,8 @@
 #ifndef _PRNFILE_H_
 #define _PRNFILE_H_
 
-#include "vm.h"
-#include "../emu.h"
+//#include "vm.h"
+//#include "../emu.h"
 #include "device.h"
 
 class FILEIO;
@@ -26,7 +26,9 @@ private:
        FILEIO *fio;
        int value, busy_id, ack_id, wait_frames;
        bool strobe, res, busy, ack;
-       
+
+       bool _PRINTER_STROBE_RISING_EDGE;
+
        void set_busy(bool value);
        void set_ack(bool value);
        void open_file();
@@ -37,6 +39,8 @@ public:
        {
                initialize_output_signals(&outputs_busy);
                initialize_output_signals(&outputs_ack);
+               _PRINTER_STROBE_RISING_EDGE = false;
+               set_device_name(_T("DUMMY PRINTER DEVICE"));
        }
        ~PRNFILE() {}
        
@@ -48,12 +52,9 @@ public:
        void write_signal(int id, uint32_t data, uint32_t mask);
        uint32_t read_signal(int ch);
        void event_callback(int event_id, int err);
+       void decl_state();
        void save_state(FILEIO* state_fio);
        bool load_state(FILEIO* state_fio);
-       const _TCHAR *get_device_name()
-       {
-               return _T("Dummy Printer Device");
-       }
        
        // unique functions
        void set_context_busy(DEVICE* device, int id, uint32_t mask)