diff --git a/source/arm11/filebrowser.c b/source/arm11/filebrowser.c index 7c984e5..9576ddb 100644 --- a/source/arm11/filebrowser.c +++ b/source/arm11/filebrowser.c @@ -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);