Explorar o código

Make directory names the same a the filenames

A couple of the default directory name prefixes were
different than the filename prefixes. Specifically
removable drives (RE) and floppy disk drives (FD).

This fix uses the filename prefixes for the default
directory name prefixes.
Morio %!s(int64=2) %!d(string=hai) anos
pai
achega
0156865743
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      src/ZuluSCSI_disk.cpp

+ 4 - 4
src/ZuluSCSI_disk.cpp

@@ -642,7 +642,7 @@ static void scsiDiskLoadConfig(int target_idx, const char *section)
             tmp[2] += target_idx;
             scsiDiskCheckDir(tmp, target_idx, &img, S2S_CFG_OPTICAL, "optical");
 
-            strcpy(tmp, "RM0");
+            strcpy(tmp, "RE0");
             tmp[2] += target_idx;
             scsiDiskCheckDir(tmp, target_idx, &img, S2S_CFG_REMOVEABLE, "removable");
 
@@ -654,7 +654,7 @@ static void scsiDiskLoadConfig(int target_idx, const char *section)
             tmp[2] += target_idx;
             scsiDiskCheckDir(tmp, target_idx, &img, S2S_CFG_SEQUENTIAL, "tape");
 
-            strcpy(tmp, "FP0");
+            strcpy(tmp, "FD0");
             tmp[2] += target_idx;
             scsiDiskCheckDir(tmp, target_idx, &img, S2S_CFG_FLOPPY_14MB, "floppy");
         }
@@ -776,7 +776,7 @@ int scsiDiskGetNextImageName(image_config_t &img, char *buf, size_t buflen)
                     strcpy(dirname, "CD0");
                 break;
                 case S2S_CFG_REMOVEABLE:
-                    strcpy(dirname, "RM0");
+                    strcpy(dirname, "RE0");
                 break;
                 case S2S_CFG_MO:
                     strcpy(dirname, "MO0");
@@ -785,7 +785,7 @@ int scsiDiskGetNextImageName(image_config_t &img, char *buf, size_t buflen)
                     strcpy(dirname ,"TP0");
                 break;
                 case S2S_CFG_FLOPPY_14MB:
-                    strcpy(dirname, "FP0");
+                    strcpy(dirname, "FD0");
                 break;
                 default:
                     dbgmsg("No matching device type for default directory found");