Skip to content

Commit

Permalink
scsi: add FD, MO, RE, and TP imgdir
Browse files Browse the repository at this point in the history
  • Loading branch information
erichelgeson committed Oct 21, 2024
1 parent 33122ef commit b8a9ad9
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/BlueSCSI_disk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,30 @@ static void scsiDiskLoadConfig(int target_idx, const char *section)
img.deviceType = S2S_CFG_ZIP100;
img.image_directory = true;
}
strcpy(tmp, "MOX");
tmp[2] = '0' + target_idx;
if(SD.exists(tmp))
{
log("-- SCSI ID: ", target_idx, " using Magneto-optical image directory \'", tmp, "'");
img.deviceType = S2S_CFG_MO;
img.image_directory = true;
}
strcpy(tmp, "REX");
tmp[2] = '0' + target_idx;
if(SD.exists(tmp))
{
log("-- SCSI ID: ", target_idx, " using Removable image directory \'", tmp, "'");
img.deviceType = S2S_CFG_REMOVEABLE;
img.image_directory = true;
}
strcpy(tmp, "TPX");
tmp[2] = '0' + target_idx;
if(SD.exists(tmp))
{
log("-- SCSI ID: ", target_idx, " using Tape image directory \'", tmp, "'");
img.deviceType = S2S_CFG_SEQUENTIAL;
img.image_directory = true;
}
}
}
}
Expand Down Expand Up @@ -770,6 +794,14 @@ int scsiDiskGetNextImageName(image_config_t &img, char *buf, size_t buflen)
strcpy(dirname, "CDX");
else if(img.deviceType == S2S_CFG_ZIP100)
strcpy(dirname, "ZPX");
else if(img.deviceType == S2S_CFG_FLOPPY_14MB)
strcpy(dirname, "FDX");
else if(img.deviceType == S2S_CFG_MO)
strcpy(dirname, "MOX");
else if(img.deviceType == S2S_CFG_REMOVEABLE)
strcpy(dirname, "REX");
else if(img.deviceType == S2S_CFG_SEQUENTIAL)
strcpy(dirname, "TPX");
else
strcpy(dirname, "HDX");
dirname[2] = '0' + target_idx;
Expand Down

0 comments on commit b8a9ad9

Please sign in to comment.