mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-06 13:54:09 +08:00
移除log,修改lineprovider幂等
This commit is contained in:
parent
7d7d7bed34
commit
90472f27ce
@ -241,19 +241,13 @@ static atp_error_t select_region( atp_callerdata_t data, atp_counter_t index, at
|
||||
acl_chtid_t sid;
|
||||
acl_region_t sreg;
|
||||
char *p = data;
|
||||
char *t;
|
||||
if( ACHTLIB_SUCCESS != acl_query_cheat_set(index, &sid, &sreg) )
|
||||
{
|
||||
config->text = "无效数据";
|
||||
config->value = index;
|
||||
return ATP_SUCCESS;
|
||||
}
|
||||
if( sreg == p[0] ) p[1]++;
|
||||
else
|
||||
{
|
||||
p[0] = sreg;
|
||||
p[1] = 'A';
|
||||
}
|
||||
char *t;
|
||||
switch( sreg )
|
||||
{
|
||||
case 'C': t = "官方中文"; break;
|
||||
@ -265,7 +259,7 @@ static atp_error_t select_region( atp_callerdata_t data, atp_counter_t index, at
|
||||
case 'D': t = "德语版"; break;
|
||||
default: t = "其他语种"; break;
|
||||
}
|
||||
ee_sprintf(text, "%s-%c", t, p[1]);
|
||||
ee_sprintf(text, "%c-%s", t, 'A'+index);
|
||||
config->text = text;
|
||||
config->value = sreg;
|
||||
return ATP_SUCCESS;
|
||||
@ -319,14 +313,12 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a
|
||||
return WAIT_ON_ERRPAGE( display_noserial );
|
||||
}
|
||||
else RECOVER_PATH;
|
||||
DEBUG(serial);
|
||||
|
||||
acl_count_t len;
|
||||
if( ACHTLIB_SUCCESS != acl_open_lib( "gba.acl" ) )
|
||||
{
|
||||
return WAIT_ON_ERRPAGE( display_openlib );
|
||||
}
|
||||
DEBUG("open_lib ok");
|
||||
if( ACHTLIB_SUCCESS != acl_select_game( serial, 0, &len ) )
|
||||
{
|
||||
acl_close_lib();
|
||||
@ -337,13 +329,11 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a
|
||||
acl_close_lib();
|
||||
return WAIT_ON_ERRPAGE( display_nocheat );
|
||||
}
|
||||
DEBUG("select_game ok");
|
||||
|
||||
// 显示配置页面
|
||||
atp_error_t res;
|
||||
atp_itemval_t item;
|
||||
char type[2] = {' ', 'A'};
|
||||
res = atp_select("选择一个金手指配置", len, select_region, NULL, type, 0, 0, &item );
|
||||
res = atp_select("选择一个金手指配置", len, select_region, NULL, NULL, 0, 0, &item );
|
||||
|
||||
acl_close_lib();
|
||||
return WAIT_ON_ACT( res );
|
||||
|
Loading…
x
Reference in New Issue
Block a user