Forráskód Böngészése

Fix missing brace

A brace got lost in the merging. Added it back and tested
 - ZuluSCSIv1_1_plus
 - ZuluSCSI_RP2040
 - ZuluSCSI_Pico
 - ZuluSCSI_Pico_DaynaPORT

 They all booted Mac OS Classic successfully.
Morio 2 éve
szülő
commit
1734c39c3f
1 módosított fájl, 5 hozzáadás és 9 törlés
  1. 5 9
      src/ZuluSCSI_disk.cpp

+ 5 - 9
src/ZuluSCSI_disk.cpp

@@ -387,16 +387,12 @@ bool scsiDiskOpenHDDImage(int target_idx, const char *filename, int scsi_id, int
         img.scsiId = scsi_id | S2S_CFG_TARGET_ENABLED;
         img.sdSectorStart = 0;
         
-        if (type != S2S_CFG_NETWORK)
+        if (type != S2S_CFG_NETWORK && img.scsiSectors == 0)
         {
-
-            if (img.scsiSectors == 0)
-            {
-                logmsg("---- Error: image file ", filename, " is empty");
-                img.file.close();
-                return false;
-            }
-
+            logmsg("---- Error: image file ", filename, " is empty");
+            img.file.close();
+            return false;
+        }
         uint32_t sector_begin = 0, sector_end = 0;
         if (img.file.isRom())
         {