From 62f2ba13ffc05c944da1acb2abd7a0d591e21255 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Tue, 9 May 2023 16:38:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=AF=BC=E5=87=BA=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E5=90=8E=E7=9A=84rom=E7=9A=84=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/filebrowser.c | 5 ----- source/arm11/pages.c | 15 ++++++++++++++- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/source/arm11/filebrowser.c b/source/arm11/filebrowser.c index 161a16e..6beb75c 100644 --- a/source/arm11/filebrowser.c +++ b/source/arm11/filebrowser.c @@ -282,11 +282,6 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t index, a } else if( y ) { -#ifndef NDEBUG - extern u8 dump_patched_rom; - dump_patched_rom = 0; -#endif - void* *dat = (void **)data; DirList const *dList = (DirList*)dat[0]; char *file = &dList->ptrs[index][1]; diff --git a/source/arm11/pages.c b/source/arm11/pages.c index beb01f8..f281a7f 100644 --- a/source/arm11/pages.c +++ b/source/arm11/pages.c @@ -223,7 +223,7 @@ static atp_error_t select_region( atp_callerdata_t, atp_counter_t index, atp_ite acl_chtid_t sid, id; if( ACHTLIB_SUCCESS != acl_query_cheat_set(index, &sid, &sreg) ) { - config->text = "无效数据"; + config->text = "导出文件"; config->value = index; return ATP_SUCCESS; } @@ -443,10 +443,23 @@ atp_error_t use_cheat_page( const char *serial ) { if( status == DISP_REGION ) { +#ifndef NDEBUG res = atp_select("请谨慎使用金手指!金手指可能会引起卡顿、死机、损坏存档等现象。           " "选择一个金手指配置:", len, select_region, NULL, NULL, defi, 0, &item ); +#else + res = atp_select("请谨慎使用金手指!金手指可能会引起卡顿、死机、损坏存档等现象。           " + "选择一个金手指配置:", len+1, select_region, NULL, NULL, defi, 0, &item ); +#endif if( res == ATP_SUCCESS ) { +#ifndef NDEBUG + if( item == len ) + { + extern u8 dump_patched_rom; + u8 dump_patched_rom = 1; + break; + } +#endif defi = item; acl_chtid_t sid; acl_elemlen_t len;