Minor stuff
This commit is contained in:
parent
180b2a6f4d
commit
c14526068a
@ -80,9 +80,6 @@ void main(void)
|
||||
|
||||
//Get pressed buttons
|
||||
u32 pressed = HID_PAD;
|
||||
|
||||
//Determine if we need to autoboot sysNAND
|
||||
u32 autoBootSys = CONFIG(0);
|
||||
|
||||
//Determine if A9LH is installed and the user has an updated sysNAND
|
||||
if(a9lhBoot || CONFIG(2))
|
||||
@ -143,6 +140,9 @@ void main(void)
|
||||
//If screens are inited or the corresponding option is set, load splash screen
|
||||
if(PDN_GPU_CNT != 1 || CONFIG(8)) loadSplash();
|
||||
|
||||
//Determine if we need to autoboot sysNAND
|
||||
u32 autoBootSys = CONFIG(0);
|
||||
|
||||
//Determine if we need to boot an emuNAND or sysNAND
|
||||
nandType = (pressed & BUTTON_L1) ? autoBootSys : ((pressed & BUTTON_R1) ? updatedSys : !autoBootSys);
|
||||
|
||||
|
@ -76,11 +76,8 @@ void firmRead(void *dest, const char *firmFolder)
|
||||
u32 id = 0;
|
||||
|
||||
//Parse the target directory
|
||||
while(f_readdir(&dir, &info) == FR_OK)
|
||||
while(f_readdir(&dir, &info) == FR_OK && info.fname[0])
|
||||
{
|
||||
//We've parsed the whole folder
|
||||
if(!info.fname[0]) break;
|
||||
|
||||
//Not a cxi
|
||||
if(info.altname[9] != 'A') continue;
|
||||
|
||||
|
Reference in New Issue
Block a user