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.
This commit is contained in:
lifehackerhansol 2023-07-24 06:19:29 -07:00 committed by TuxSH
parent f40a1cc47b
commit 3ecce3fc3e

View File

@ -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();