mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-08 06:44:12 +08:00
增加配置存盘的功能
This commit is contained in:
parent
5d24797c89
commit
fb68092f8e
@ -229,7 +229,16 @@ static atp_pageopt_t config_adjust( atp_callerdata_t, atp_counter_t index, atp_b
|
||||
}
|
||||
else if( x )
|
||||
{
|
||||
// TODO : STRING FORMAT AND QUICK SAVE
|
||||
int len = strlen(CONFIG_OUTPUT) + 20;
|
||||
char *data = malloc( len );
|
||||
if( data == NULL ) return ATP_PAGE_DOSELECT; // only ignore this save
|
||||
|
||||
ee_snprintf(
|
||||
data, len, CONFIG_OUTPUT,
|
||||
g_oafConfig.backlight, g_oafConfig.directBoot ? "true":"false", g_oafConfig.scaler, g_oafConfig.savePolicy
|
||||
);
|
||||
fsQuickWrite("config.ini", data, strlen(data));
|
||||
free( data );
|
||||
return ATP_PAGE_DOSELECT;
|
||||
}
|
||||
return ATP_PAGE_UPDATE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user