Minor stuff

This commit is contained in:
Aurora 2016-04-21 23:39:05 +02:00
parent 180b2a6f4d
commit c14526068a
2 changed files with 4 additions and 7 deletions

View File

@ -80,9 +80,6 @@ void main(void)
//Get pressed buttons //Get pressed buttons
u32 pressed = HID_PAD; 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 //Determine if A9LH is installed and the user has an updated sysNAND
if(a9lhBoot || CONFIG(2)) 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 screens are inited or the corresponding option is set, load splash screen
if(PDN_GPU_CNT != 1 || CONFIG(8)) loadSplash(); 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 //Determine if we need to boot an emuNAND or sysNAND
nandType = (pressed & BUTTON_L1) ? autoBootSys : ((pressed & BUTTON_R1) ? updatedSys : !autoBootSys); nandType = (pressed & BUTTON_L1) ? autoBootSys : ((pressed & BUTTON_R1) ? updatedSys : !autoBootSys);

View File

@ -76,11 +76,8 @@ void firmRead(void *dest, const char *firmFolder)
u32 id = 0; u32 id = 0;
//Parse the target directory //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 //Not a cxi
if(info.altname[9] != 'A') continue; if(info.altname[9] != 'A') continue;