Fix a bug where games would almost always start up with the main screen at low brightness and touch screen completely off. (Regression from commit f5c9a36.)

This commit is contained in:
rogerman 2017-10-03 17:28:33 -07:00
parent ff4a3e0a5c
commit addb17b660
2 changed files with 3 additions and 2 deletions

View File

@ -1011,10 +1011,11 @@ void MMU_Reset()
MMU.powerMan_CntReg = 0x00;
MMU.powerMan_CntRegWritten = FALSE;
MMU.powerMan_Reg[0] = 0x0B;
MMU.powerMan_Reg[0] = 0x0D;
MMU.powerMan_Reg[1] = 0x00;
MMU.powerMan_Reg[2] = 0x01;
MMU.powerMan_Reg[3] = 0x00;
MMU.powerMan_Reg[4] = 0x03;
rtcInit();
partie = 1;

View File

@ -798,7 +798,7 @@ static void fill_user_data_area( struct NDS_fw_config_data *user_settings,u8 *da
}
//language and flags
data[0x64] = user_settings->language;
data[0x64] = user_settings->language | 0x30; // Also set bits 4 and 5 to set the backlight level to max.
data[0x65] = 0xfc;
//update count and crc