From 3ecce3fc3e3bd3bb9de59e89640ff0acea8a8080 Mon Sep 17 00:00:00 2001 From: lifehackerhansol Date: Mon, 24 Jul 2023 06:19:29 -0700 Subject: [PATCH] Don't copy to CTRNAND if building for exploit mode While the copy to NAND process is generally a good idea for end users, this can quickly get annoying for actual developers looking to test low level stuff or contribute to Luma3DS if a testing FIRM gets sent to the NAND. --- arm9/source/fs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arm9/source/fs.c b/arm9/source/fs.c index 39554ab8..cb5cac35 100644 --- a/arm9/source/fs.c +++ b/arm9/source/fs.c @@ -523,8 +523,10 @@ bool doLumaUpgradeProcess(void) #endif // Try to boot.firm to CTRNAND, when applicable +#ifndef BUILD_FOR_EXPLOIT_DEV if (isSdMode && memcmp(launchedPathForFatfs, "sdmc:", 5) == 0) ok = fileCopy(launchedPathForFatfs, "nand:/boot.firm", true, fileCopyBuffer, sizeof(fileCopyBuffer)); +#endif // Try to backup essential files ok2 = backupEssentialFiles();