OSDN Git Service

[VM] Floppy / CMT : Add Write protection feature, but testing is not enough X-)
[csp-qt/common_source_project-fm7.git] / source / src / emu.h
index d74d7f4..977fdb2 100644 (file)
@@ -65,6 +65,9 @@
 #include "common.h"\r
 #include "config.h"\r
 #include "vm/vm.h"\r
+#if defined(USE_FD1)\r
+#include "vm/disk.h"\r
+#endif\r
 \r
 #if defined(_USE_AGAR)\r
 #include "agar_input.h"\r
@@ -750,6 +753,8 @@ public:
        void open_disk(int drv, _TCHAR* file_path, int offset);\r
        void close_disk(int drv);\r
        bool disk_inserted(int drv);\r
+       bool is_write_protected_fd(int drv);\r
+       void write_protect_fd(int drv, bool flag);\r
 #endif\r
 #ifdef USE_QD1\r
        void open_quickdisk(int drv, _TCHAR* file_path);\r