From 4148e2223384d04f938de1eb89e3b1241a1531b2 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Mon, 24 Apr 2023 17:33:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BF=9D=E5=AD=98=E9=80=89?= =?UTF-8?q?=E4=B8=AD=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/filebrowser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);