From 30bc6ec416b06185a17ffe10a084285cbad4a5f7 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Mon, 26 Oct 2020 23:23:47 -0600 Subject: [PATCH] Run nds-bootstrap from SD card, if found there, and running in DSi mode --- arm9/source/file_browse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm9/source/file_browse.cpp b/arm9/source/file_browse.cpp index 361467c..f237f82 100644 --- a/arm9/source/file_browse.cpp +++ b/arm9/source/file_browse.cpp @@ -296,7 +296,7 @@ FileOperation fileBrowse_A(DirEntry* entry, char path[PATH_MAX]) { bootstrapConfig.SetInt("NDS-BOOTSTRAP", "DSI_MODE", 0); bootstrapConfig.SaveIniFile("/_nds/nds-bootstrap.ini"); // TODO Something less hacky lol - chdir("/_nds"); + chdir(isDSiMode()&&sdMounted ? "sd:/_nds" : "fat:/_nds"); // TODO Read header and check for homebrew flag, based on that runNdsFile nds-bootstrap(-hb)-release entry->name = isDSiMode() ? "nds-bootstrap-release.nds" : "b4ds-release.nds"; applaunch = true;