尝试保存选中项目

This commit is contained in:
anod 2023-04-24 17:33:49 +08:00
parent 93d8f4bd9f
commit 4148e22233

View File

@ -783,7 +783,7 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a
extern u8 dump_patched_rom;
dump_patched_rom = 1;
#endif
atp_itemval_t position, field, value;
atp_itemval_t position=0, field=0, value;
atp_error_t res;
#define DISP_KPOS 1
@ -798,7 +798,7 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a
{
if ( status == DISP_KPOS)
{
res = atp_select( "选择配置项后按A进行键位配置", KEY_REMIX_LIMIT, select_krp, NULL, NULL, 0, 0, &position );
res = atp_select( "选择配置项后按A进行键位配置", KEY_REMIX_LIMIT, select_krp, NULL, NULL, position, 0, &position );
if( res == ATP_SUCCESS )
status = DISP_SETK;
else break;
@ -807,7 +807,7 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a
{
ee_snprintf(tips, sizeof(tips), "编辑配置项%d", position+1);
key_remix_t *cur = &g_keyremixConfig[position];
res = atp_select( tips, 3, select_kcf, NULL, cur, 0, 0, &field );
res = atp_select( tips, 3, select_kcf, NULL, cur, field, 0, &field );
if( res == ATP_SUCCESS )
{
status = field == KRFIELD_REMIX ? DISP_KMAP : (field == KRFIELD_DEVICE ? DISP_3DSK : DISP_GBAK);