Sfoglia il codice sorgente

Skip platform hook on raw drive.

Eric Helgeson 2 anni fa
parent
commit
758b80436c

+ 2 - 2
lib/BlueSCSI_platform_RP2040/BlueSCSI_platform_config_hook.cpp

@@ -83,9 +83,9 @@ void platformConfigHook(image_config_t *img)
         debuglog("Skipping platformConfigHook due to DisableConfigHook");
         return;
     }
-    if(img->file.isRom())
+    if(img->file.isRom() || img->file.isRaw())
     {
-        debuglog("Skipping platformConfigHook on ROM Drive.");
+        debuglog("Skipping platformConfigHook on ROM/Raw Drive.");
         return;
     }
     if (img->quirks == S2S_CFG_QUIRKS_APPLE)

+ 5 - 0
src/ImageBackingStore.cpp

@@ -131,6 +131,11 @@ bool ImageBackingStore::isRom()
     return m_isrom;
 }
 
+bool ImageBackingStore::isRaw()
+{
+    return m_israw;
+}
+
 bool ImageBackingStore::close()
 {
     if (m_israw)

+ 3 - 0
src/ImageBackingStore.h

@@ -49,6 +49,9 @@ public:
     // Is this internal ROM drive in microcontroller flash?
     bool isRom();
 
+    // Is the image using the raw SD card?
+    bool isRaw();
+
     // Close the image so that .isOpen() will return false.
     bool close();