From bfb136c866d582906c9f7829fe524a1bfeb11cd0 Mon Sep 17 00:00:00 2001 From: Pk11 Date: Sun, 2 Jan 2022 15:05:38 -0600 Subject: [PATCH] Don't attempt to create folder if no drive mounted --- arm9/source/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm9/source/main.cpp b/arm9/source/main.cpp index 15194bf..6b4715a 100644 --- a/arm9/source/main.cpp +++ b/arm9/source/main.cpp @@ -203,7 +203,7 @@ int main(int argc, char **argv) { // Ensure gm9i folder exists char folderPath[10]; sprintf(folderPath, "%s:/gm9i", (sdMounted ? "sd" : "fat")); - if (access(folderPath, F_OK) != 0) + if ((sdMounted || flashcardMounted) && access(folderPath, F_OK) != 0) mkdir(folderPath, 0777); // Load config