mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-06 13:54:09 +08:00
修复用户上报的gramma丢失的问题
This commit is contained in:
parent
6a9343d59f
commit
49f96c416d
@ -60,16 +60,16 @@ atp_text_t config_help[] =
|
||||
atp_text_t CONFIG_OUTPUT = "[general]\n" \
|
||||
"backlight=%d\n" \
|
||||
"directBoot=%s\n" \
|
||||
"useGbaDb=true\n\n" \
|
||||
"useGbaDb=%s\n\n" \
|
||||
"[video]\n" \
|
||||
"scaler=%d\n" \
|
||||
"gbaGamma=2.2\n" \
|
||||
"lcdGamma=1.54\n" \
|
||||
"contrast=1.0\n" \
|
||||
"brightness=0.0\n\n" \
|
||||
"gbaGamma=%.2f\n" \
|
||||
"lcdGamma=%.2f\n" \
|
||||
"contrast=%.2f\n" \
|
||||
"brightness=%.2f\n\n" \
|
||||
"[advanced]\n" \
|
||||
"saveOverride=false\n" \
|
||||
"defaultSave=14\n\n" \
|
||||
"defaultSave=%d\n\n" \
|
||||
"[boost]\n" \
|
||||
"cheatMode=%d\n";
|
||||
|
||||
@ -154,13 +154,22 @@ static atp_pageopt_t config_adjust( atp_callerdata_t gblcfg, atp_counter_t index
|
||||
}
|
||||
else if( x )
|
||||
{
|
||||
int len = strlen(CONFIG_OUTPUT) + 20;
|
||||
int len = strlen(CONFIG_OUTPUT) + 40;
|
||||
char *data = malloc( len );
|
||||
if( data == NULL ) return ATP_PAGE_DOSELECT; // only ignore this save
|
||||
|
||||
len = ee_snprintf(
|
||||
data, len, CONFIG_OUTPUT,
|
||||
g_oafConfig->backlight, g_oafConfig->directBoot ? "true":"false", g_oafConfig->scaler, g_oafConfig->cheatMode
|
||||
g_oafConfig->backlight,
|
||||
g_oafConfig->directBoot ? "true":"false",
|
||||
g_oafConfig->useGbaDb ? "true" : "false",
|
||||
g_oafConfig->scaler,
|
||||
g_oafConfig->gbaGamma,
|
||||
g_oafConfig->lcdGamma,
|
||||
g_oafConfig->contrast,
|
||||
g_oafConfig->brightness,
|
||||
g_oafConfig->defaultSave,
|
||||
g_oafConfig->cheatMode
|
||||
);
|
||||
fsQuickWrite("config.ini", data, len);
|
||||
free( data );
|
||||
|
Loading…
x
Reference in New Issue
Block a user