From 7c1635033af2a195cdb62670a144492a015393d7 Mon Sep 17 00:00:00 2001 From: Pk11 Date: Tue, 23 Nov 2021 11:01:33 -0600 Subject: [PATCH] Make gm9i folder if it doesn't exist --- arm9/source/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arm9/source/main.cpp b/arm9/source/main.cpp index c8c714d..5a38803 100644 --- a/arm9/source/main.cpp +++ b/arm9/source/main.cpp @@ -193,6 +193,12 @@ int main(int argc, char **argv) { swiWaitForVBlank(); } + // Ensure gm9i folder exists + char folderPath[10]; + sprintf(folderPath, "%s:/gm9i", (sdMounted ? "sd" : "fat")); + if (access(folderPath, F_OK) != 0) + mkdir(folderPath, 0777); + // Load config config = new Config();