diff --git a/machines/machinefactory.cpp b/machines/machinefactory.cpp index d88ddd1..84c1297 100644 --- a/machines/machinefactory.cpp +++ b/machines/machinefactory.cpp @@ -67,6 +67,8 @@ static const map> rom_identity = { {0x5A616E7A, {"pm4400", "Power Mac 4400/7220"}}, // Zanzibar }; +static const vector WriteToggle = {"ON", "on", "OFF", "off"}; + static const PropMap GossamerSettings = { {"rambank1_size", new IntProperty(256, vector({8, 16, 32, 64, 128, 256}))}, @@ -80,8 +82,7 @@ static const PropMap GossamerSettings = { new StrProperty("")}, {"fdd_img", new StrProperty("")}, - {"fdd_wr_prot", - new StrProperty("")}, + {"fdd_wr_prot", new StrProperty("OFF", WriteToggle)}, }; /** Monitors supported by the PDM on-board video. */ @@ -101,8 +102,8 @@ static const PropMap PDMSettings = { new StrProperty("HiRes12-14in", PDMBuiltinMonitorIDs)}, {"fdd_img", new StrProperty("")}, - {"fdd_wr_prot", - new StrProperty("")}, + {"fdd_wr_prot", + new StrProperty("OFF", WriteToggle)}, }; static const map PropHelp = { diff --git a/machines/machinepdm.cpp b/machines/machinepdm.cpp index 8ac2dcd..8ec9717 100644 --- a/machines/machinepdm.cpp +++ b/machines/machinepdm.cpp @@ -109,7 +109,7 @@ int create_pdm(std::string& id) { bool write_flag = false; if (!fd_write_prot.empty()) { - if (fd_write_prot.compare("on") == 0) { + if ((fd_write_prot.compare("ON") == 0) or (fd_write_prot.compare("on") == 0)) { write_flag = true; } }