OSDN Git Service

[VM][General] Merge upstream 2016-03-01. (Pahse 1).
[csp-qt/common_source_project-fm7.git] / source / src / vm / tk80bs / cmt.h
index 908305f..22eefe0 100644 (file)
@@ -25,9 +25,10 @@ private:
        DEVICE* d_sio;
        
        FILEIO* fio;
-       int bufcnt;
-       uint8 buffer[BUFFER_SIZE];
        bool play, rec;
+       _TCHAR rec_file_path[_MAX_PATH];
+       int bufcnt;
+       uint8_t buffer[BUFFER_SIZE];
        
        void release_tape();
        
@@ -39,13 +40,15 @@ public:
        void initialize();
        void release();
        void reset();
-       void write_signal(int id, uint32 data, uint32 mask);
+       void write_signal(int id, uint32_t data, uint32_t mask);
+       void save_state(FILEIO* state_fio);
+       bool load_state(FILEIO* state_fio);
        
        // unique functions
        void play_tape(const _TCHAR* file_path);
        void rec_tape(const _TCHAR* file_path);
        void close_tape();
-       bool tape_inserted()
+       bool is_tape_inserted()
        {
                return (play || rec);
        }