修正亮度不存盘问题

This commit is contained in:
anod 2023-08-17 22:10:04 +08:00
parent 05f5507323
commit 768c4992e1

View File

@ -721,7 +721,7 @@ static int cfgIniCallback(void* user, const char* section, const char* name, con
if(strcmp(section, "general") == 0)
{
if(strcmp(name, "backlight") == 0)
config->backlight = (u8)strtoul(value, NULL, 10);
config->backlight = (u16)strtoul(value, NULL, 10);
else if(strcmp(name, "directBoot") == 0)
config->directBoot = (strcmp(value, "false") == 0 ? false : true);
else if(strcmp(name, "useGbaDb") == 0)