Преглед на файлове

Fix IMG0..9 config entries in zuluscsi.ini not working (#223)

Commit 06dab18 made scsiDiskGetImageNameFromConfig() use
the configured SCSI ID for lookup, but the ID was only
set after the image was opened.

Made it set the ID in scsiDiskConfigDefaults(),
and then scsiDiskOpenHDDImage() will set S2S_CFG_TARGET_ENABLED.
Petteri Aimonen преди 2 години
родител
ревизия
f55c72c4a6
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/BlueSCSI_disk.cpp

+ 1 - 0
src/BlueSCSI_disk.cpp

@@ -440,6 +440,7 @@ static void scsiDiskConfigDefaults(int target_idx)
     preset_config_t defaults = getSystemPreset(presetName);
 
     image_config_t &img = g_DiskImages[target_idx];
+    img.scsiId = target_idx;
     img.deviceType = S2S_CFG_FIXED;
     img.deviceTypeModifier = defaults.deviceTypeModifier;
     img.sectorsPerTrack = defaults.sectorsPerTrack;