diff --git a/romsel_dsimenutheme/arm9/source/main.cpp b/romsel_dsimenutheme/arm9/source/main.cpp index c53051f5e3..99eaec3a5c 100644 --- a/romsel_dsimenutheme/arm9/source/main.cpp +++ b/romsel_dsimenutheme/arm9/source/main.cpp @@ -661,6 +661,7 @@ void loadGameOnFlashcard(const char *ndsPath, bool dsGame) { } std::string romFolderNoSlash = romfolder; RemoveTrailingSlashes(romFolderNoSlash); + chdir(romFolderNoSlash.c_str()); mkdir("saves", 0777); std::string savepath = romFolderNoSlash + "/saves/" + savename; std::string savepathFc = romFolderNoSlash + "/" + savenameFc; diff --git a/romsel_r4theme/arm9/source/main.cpp b/romsel_r4theme/arm9/source/main.cpp index 7d22b21d86..42f868c2b2 100644 --- a/romsel_r4theme/arm9/source/main.cpp +++ b/romsel_r4theme/arm9/source/main.cpp @@ -750,6 +750,7 @@ void loadGameOnFlashcard(const char* ndsPath, bool dsGame) { } std::string romFolderNoSlash = romfolder; RemoveTrailingSlashes(romFolderNoSlash); + chdir(romFolderNoSlash.c_str()); mkdir("saves", 0777); std::string savepath = romFolderNoSlash + "/saves/" + savename; std::string savepathFc = romFolderNoSlash + "/" + savenameFc;