Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/famicom-dumper-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-04-23 02:57:31 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2021-04-23 02:57:31 +0300
commit53175b537abce696f8c9390c36439d3db16c0965 (patch)
treef17eed2d0f12d92f045fe707da12735e7fde67c2 /FamicomDumperConnection
parent8e4ffdf180805095353f2fb7c682ea6651258cb2 (diff)
Check for FDS write protection
Diffstat (limited to 'FamicomDumperConnection')
-rw-r--r--FamicomDumperConnection/FamicomDumperConnection.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/FamicomDumperConnection/FamicomDumperConnection.cs b/FamicomDumperConnection/FamicomDumperConnection.cs
index f4c6208..c1c36e5 100644
--- a/FamicomDumperConnection/FamicomDumperConnection.cs
+++ b/FamicomDumperConnection/FamicomDumperConnection.cs
@@ -101,6 +101,7 @@ namespace com.clusterrr.Famicom.DumperConnection
FDS_WRITE_DONE = 54,
SET_FLASH_BUFFER_SIZE = 55,
SET_VALUE_DONE = 56,
+ FDS_DISK_WRITE_PROTECTED = 57,
BOOTLOADER = 0xFE,
DEBUG = 0xFF
@@ -879,6 +880,8 @@ namespace com.clusterrr.Famicom.DumperConnection
throw new IOException("RAM adapter IO error, is it connected?");
case DumperCommand.FDS_DISK_NOT_INSERTED:
throw new IOException("Disk card is not set");
+ case DumperCommand.FDS_DISK_WRITE_PROTECTED:
+ throw new IOException("Disk card is write protected");
case DumperCommand.FDS_BATTERY_LOW:
throw new IOException("Battery voltage is low or power supply is not connected");
case DumperCommand.FDS_TIMEOUT: