Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #64 - Issue with implict CD changing when hidden files are in dir #68

Merged
merged 2 commits into from
Sep 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions src/BlueSCSI_disk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,11 @@ bool scsiDiskFilenameValid(const char* name)
}
}
}
if(name[0] == '.')
{
debuglog("-- Ignoring hidden file ", name);
return false;
}
return true;
}

Expand Down
5 changes: 5 additions & 0 deletions src/ImageBackingStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,11 @@ bool ImageBackingStore::isRom()
return m_isrom;
}

bool ImageBackingStore::isRaw()
{
return m_israw;
}

bool ImageBackingStore::close()
{
if (m_israw)
Expand Down
3 changes: 3 additions & 0 deletions src/ImageBackingStore.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down