Fixed dumb mistakes
This commit is contained in:
parent
060d8e9945
commit
5e99fb3aa0
@ -52,9 +52,7 @@ void setupCFW(void){
|
|||||||
//Attempt to read the configuration file
|
//Attempt to read the configuration file
|
||||||
const char configPath[] = "aurei/config.bin";
|
const char configPath[] = "aurei/config.bin";
|
||||||
u32 config = 0,
|
u32 config = 0,
|
||||||
tempConfig = (PATCH_VER << 17) | (a9lhSetup << 16);
|
needConfig = fileRead(&config, configPath, 3) ? 1 : 2;
|
||||||
|
|
||||||
u32 needConfig = fileRead(&config, configPath, 3) ? 1 : 2;
|
|
||||||
|
|
||||||
//Determine if A9LH is installed and the user has an updated sysNAND
|
//Determine if A9LH is installed and the user has an updated sysNAND
|
||||||
u32 updatedSys;
|
u32 updatedSys;
|
||||||
@ -71,6 +69,8 @@ void setupCFW(void){
|
|||||||
updatedSys = 0;
|
updatedSys = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
u32 tempConfig = (PATCH_VER << 17) | (a9lhSetup << 16);
|
||||||
|
|
||||||
/* If booting with A9LH, it's a MCU reboot and a previous configuration exists,
|
/* If booting with A9LH, it's a MCU reboot and a previous configuration exists,
|
||||||
try to force boot options */
|
try to force boot options */
|
||||||
if(a9lhBoot && previousFirm && needConfig == 1){
|
if(a9lhBoot && previousFirm && needConfig == 1){
|
||||||
@ -83,7 +83,7 @@ void setupCFW(void){
|
|||||||
needConfig = 0;
|
needConfig = 0;
|
||||||
/* Else, force the last used boot options unless A, L or R are pressed
|
/* Else, force the last used boot options unless A, L or R are pressed
|
||||||
or the no-forcing flag is set */
|
or the no-forcing flag is set */
|
||||||
} else if(!(pressed & OPTION_BUTTONS) && ((config >> 15) & 1)){
|
} else if(!(pressed & OPTION_BUTTONS) && !((config >> 15) & 1)){
|
||||||
mode = (config >> 12) & 1;
|
mode = (config >> 12) & 1;
|
||||||
emuNAND = (config >> 13) & 3;
|
emuNAND = (config >> 13) & 3;
|
||||||
needConfig = 0;
|
needConfig = 0;
|
||||||
|
@ -82,7 +82,7 @@ void initScreens(void){
|
|||||||
*(vu32 *)0x1040049C = 0x00000000;
|
*(vu32 *)0x1040049C = 0x00000000;
|
||||||
|
|
||||||
// Disco register
|
// Disco register
|
||||||
for(vu32 i = 0; i < 256; i++)
|
for(u32 i = 0; i < 256; i++)
|
||||||
*(vu32 *)0x10400484 = 0x10101 * i;
|
*(vu32 *)0x10400484 = 0x10101 * i;
|
||||||
|
|
||||||
// Bottom screen
|
// Bottom screen
|
||||||
@ -116,7 +116,7 @@ void initScreens(void){
|
|||||||
*(vu32 *)0x1040059C = 0x00000000;
|
*(vu32 *)0x1040059C = 0x00000000;
|
||||||
|
|
||||||
// Disco register
|
// Disco register
|
||||||
for(vu32 i = 0; i < 256; i++)
|
for(u32 i = 0; i < 256; i++)
|
||||||
*(vu32 *)0x10400584 = 0x10101 * i;
|
*(vu32 *)0x10400584 = 0x10101 * i;
|
||||||
|
|
||||||
// Enable backlight
|
// Enable backlight
|
||||||
|
Loading…
x
Reference in New Issue
Block a user