From 8887c123e72a8b70ec619fd559a18eb9413b899d Mon Sep 17 00:00:00 2001 From: Morio Date: Thu, 1 Feb 2024 13:48:21 -0800 Subject: [PATCH] Fix IMGx=filename ignoring device type This fixes an issue when there is an entry like this in `zuluscsi.ini` ``` [SCSI3] IMG0="my_cd.iso" Type = 2 # CD-ROM type ``` The image type in that particular code path wasn't set and sector length was incorrectly being set to 512B instead of 2048B. --- src/ZuluSCSI_disk.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ZuluSCSI_disk.cpp b/src/ZuluSCSI_disk.cpp index ba5289e8..25918111 100644 --- a/src/ZuluSCSI_disk.cpp +++ b/src/ZuluSCSI_disk.cpp @@ -704,6 +704,7 @@ int scsiDiskGetNextImageName(image_config_t &img, char *buf, size_t buflen) int ret = ini_gets(section, key, "", buf, buflen, CONFIGFILE); if (buf[0] != '\0') { + img.deviceType = g_scsi_settings.getDevice(target_idx)->deviceType; return ret; } else if (img.image_index > 0)