mirror of
https://gitee.com/anod/open_agb_firm.git
synced 2025-05-07 22:34:12 +08:00
尝试保存选中项目
This commit is contained in:
parent
93d8f4bd9f
commit
4148e22233
@ -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;
|
extern u8 dump_patched_rom;
|
||||||
dump_patched_rom = 1;
|
dump_patched_rom = 1;
|
||||||
#endif
|
#endif
|
||||||
atp_itemval_t position, field, value;
|
atp_itemval_t position=0, field=0, value;
|
||||||
atp_error_t res;
|
atp_error_t res;
|
||||||
|
|
||||||
#define DISP_KPOS 1
|
#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)
|
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 )
|
if( res == ATP_SUCCESS )
|
||||||
status = DISP_SETK;
|
status = DISP_SETK;
|
||||||
else break;
|
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);
|
ee_snprintf(tips, sizeof(tips), "编辑配置项%d", position+1);
|
||||||
key_remix_t *cur = &g_keyremixConfig[position];
|
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 )
|
if( res == ATP_SUCCESS )
|
||||||
{
|
{
|
||||||
status = field == KRFIELD_REMIX ? DISP_KMAP : (field == KRFIELD_DEVICE ? DISP_3DSK : DISP_GBAK);
|
status = field == KRFIELD_REMIX ? DISP_KMAP : (field == KRFIELD_DEVICE ? DISP_3DSK : DISP_GBAK);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user