Rename "Updated SysNAND" to reflect its only new purpose
This commit is contained in:
parent
e7b8a0ef39
commit
8d1befea9e
@ -39,7 +39,7 @@ void configureCFW(const char *configPath)
|
|||||||
"New 3DS CPU: Off( ) Clock( ) L2( ) Clock+L2( )" };
|
"New 3DS CPU: Off( ) Clock( ) L2( ) Clock+L2( )" };
|
||||||
|
|
||||||
const char *singleOptionsText[] = { "( ) Autoboot SysNAND",
|
const char *singleOptionsText[] = { "( ) Autoboot SysNAND",
|
||||||
"( ) SysNAND is updated (A9LH-only)",
|
"( ) Use SysNAND FIRM if booting with R (A9LH)",
|
||||||
"( ) Use second EmuNAND as default",
|
"( ) Use second EmuNAND as default",
|
||||||
"( ) Enable region/language emu. and ext. .code",
|
"( ) Enable region/language emu. and ext. .code",
|
||||||
"( ) Show current NAND in System Settings",
|
"( ) Show current NAND in System Settings",
|
||||||
|
@ -47,8 +47,7 @@ FirmwareSource firmSource;
|
|||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
bool isFirmlaunch,
|
bool isFirmlaunch,
|
||||||
isA9lh,
|
isA9lh;
|
||||||
updatedSys;
|
|
||||||
|
|
||||||
u32 newConfig,
|
u32 newConfig,
|
||||||
emuHeader,
|
emuHeader,
|
||||||
@ -82,7 +81,6 @@ void main(void)
|
|||||||
nandType = (FirmwareSource)BOOTCONFIG(0, 3);
|
nandType = (FirmwareSource)BOOTCONFIG(0, 3);
|
||||||
firmSource = (FirmwareSource)BOOTCONFIG(2, 1);
|
firmSource = (FirmwareSource)BOOTCONFIG(2, 1);
|
||||||
isA9lh = BOOTCONFIG(3, 1) != 0;
|
isA9lh = BOOTCONFIG(3, 1) != 0;
|
||||||
updatedSys = isA9lh && CONFIG(1);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -95,8 +93,8 @@ void main(void)
|
|||||||
//Determine if booting with A9LH
|
//Determine if booting with A9LH
|
||||||
isA9lh = !PDN_SPI_CNT;
|
isA9lh = !PDN_SPI_CNT;
|
||||||
|
|
||||||
//Determine if the user has an updated sysNAND
|
//Determine if the user chose to use the SysNAND FIRM as default for a R boot
|
||||||
updatedSys = isA9lh ? CONFIG(1) : false;
|
bool useSysAsDefault = isA9lh ? CONFIG(1) : false;
|
||||||
|
|
||||||
newConfig = (u32)isA9lh << 3;
|
newConfig = (u32)isA9lh << 3;
|
||||||
|
|
||||||
@ -107,7 +105,7 @@ void main(void)
|
|||||||
if(CFG_BOOTENV == 7)
|
if(CFG_BOOTENV == 7)
|
||||||
{
|
{
|
||||||
nandType = FIRMWARE_SYSNAND;
|
nandType = FIRMWARE_SYSNAND;
|
||||||
firmSource = updatedSys ? FIRMWARE_SYSNAND : (FirmwareSource)BOOTCONFIG(2, 1);
|
firmSource = useSysAsDefault ? FIRMWARE_SYSNAND : (FirmwareSource)BOOTCONFIG(2, 1);
|
||||||
needConfig = DONT_CONFIGURE;
|
needConfig = DONT_CONFIGURE;
|
||||||
|
|
||||||
//Flag to prevent multiple boot options-forcing
|
//Flag to prevent multiple boot options-forcing
|
||||||
@ -165,8 +163,8 @@ void main(void)
|
|||||||
//If R is pressed, boot the non-updated NAND with the FIRM of the opposite one
|
//If R is pressed, boot the non-updated NAND with the FIRM of the opposite one
|
||||||
if(pressed & BUTTON_R1)
|
if(pressed & BUTTON_R1)
|
||||||
{
|
{
|
||||||
nandType = (updatedSys) ? FIRMWARE_EMUNAND : FIRMWARE_SYSNAND;
|
nandType = (useSysAsDefault) ? FIRMWARE_EMUNAND : FIRMWARE_SYSNAND;
|
||||||
firmSource = (updatedSys) ? FIRMWARE_SYSNAND : FIRMWARE_EMUNAND;
|
firmSource = (useSysAsDefault) ? FIRMWARE_SYSNAND : FIRMWARE_EMUNAND;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Else, boot the NAND the user set to autoboot or the opposite one, depending on L,
|
/* Else, boot the NAND the user set to autoboot or the opposite one, depending on L,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user