Allow scanDir() to operate when fatDir is empty

The only time we need fatDir to be not-empty is when we are using a custom FAT directory (ie. `slot1_R4_path_type/sameAsRom == false`). When we are using the ROM path (`slot1_R4_path_type/sameAsRom == true`), fatDir is not even used, and we should be able to load the FAT image.
This commit is contained in:
Ruben 2022-05-22 17:50:22 +10:00 committed by GitHub
parent 76357662be
commit f769f439dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ static std::string fatDir;
static void scanDir()
{
if(fatDir == "") return;
if(fatDir == "" && !slot1_R4_path_type) return;
if (fatImage)
{