Skip to content

Commit

Permalink
Merge pull request #68 from BlueSCSI/eric/64
Browse files Browse the repository at this point in the history
Fix #64 - Issue with implict CD changing when hidden files are in dir
  • Loading branch information
erichelgeson authored Sep 12, 2023
2 parents ff4d2e1 + 758b804 commit d00ebe0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
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

0 comments on commit d00ebe0

Please sign in to comment.