From f769f439dd75645e0cd6b7e27420f4e8605dbb8d Mon Sep 17 00:00:00 2001 From: Ruben <40356555+Aikku93@users.noreply.github.com> Date: Sun, 22 May 2022 17:50:22 +1000 Subject: [PATCH] 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. --- desmume/src/slot1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desmume/src/slot1.cpp b/desmume/src/slot1.cpp index bf7285bc4..c6cdf4381 100644 --- a/desmume/src/slot1.cpp +++ b/desmume/src/slot1.cpp @@ -45,7 +45,7 @@ static std::string fatDir; static void scanDir() { - if(fatDir == "") return; + if(fatDir == "" && !slot1_R4_path_type) return; if (fatImage) {