diff --git a/lib/BlueSCSI_platform_RP2040/BlueSCSI_platform_config_hook.cpp b/lib/BlueSCSI_platform_RP2040/BlueSCSI_platform_config_hook.cpp index 38514fea..6145e628 100644 --- a/lib/BlueSCSI_platform_RP2040/BlueSCSI_platform_config_hook.cpp +++ b/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) diff --git a/src/BlueSCSI_disk.cpp b/src/BlueSCSI_disk.cpp index 33c4ee79..850a292a 100644 --- a/src/BlueSCSI_disk.cpp +++ b/src/BlueSCSI_disk.cpp @@ -480,6 +480,11 @@ bool scsiDiskFilenameValid(const char* name) } } } + if(name[0] == '.') + { + debuglog("-- Ignoring hidden file ", name); + return false; + } return true; } diff --git a/src/ImageBackingStore.cpp b/src/ImageBackingStore.cpp index 8f36c5ff..02095b16 100644 --- a/src/ImageBackingStore.cpp +++ b/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) diff --git a/src/ImageBackingStore.h b/src/ImageBackingStore.h index d51a5402..6724c7cb 100644 --- a/src/ImageBackingStore.h +++ b/src/ImageBackingStore.h @@ -49,6 +49,9 @@ class ImageBackingStore // 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();