From 5ca7fb795d625aec3bf62963bc72e3f41897d0b2 Mon Sep 17 00:00:00 2001 From: anod <182859762@qq.com> Date: Sat, 22 Oct 2022 09:43:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4release=E7=89=88=E6=9C=AC?= =?UTF-8?q?=EF=BC=8C=E8=AF=95=E8=AF=95=E7=9C=8B=E8=83=BD=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E8=B7=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/arm11/filebrowser.c | 7 +++++++ source/arm11/open_agb_firm.c | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/source/arm11/filebrowser.c b/source/arm11/filebrowser.c index 70b2b8e..e01b3fc 100644 --- a/source/arm11/filebrowser.c +++ b/source/arm11/filebrowser.c @@ -175,6 +175,7 @@ static atp_error_t display_folder( atp_callerdata_t data, atp_counter_t index, a return ATP_SUCCESS; \ } +DECLARE_ERROR_PAGE( display_nocheat, "金手指功能还在制作中……" ) DECLARE_ERROR_PAGE( display_empty, "没有合适的文件" ) DECLARE_ERROR_PAGE( display_toolong, "路径过长,改名或移动文件后再试" ) DECLARE_ERROR_PAGE( display_pathfull, "游戏或目录过量,最多显示999个" ) @@ -209,6 +210,12 @@ static atp_pageopt_t serve_on_key( atp_callerdata_t data, atp_counter_t, atp_boo { return ATP_POWER_OFF == oaf_config_page() ? ATP_POWER_OFF : ATP_PAGE_REFRESH; } + else if( x ) + { + atp_tips( "", NULL ); + return ATP_POWER_OFF == atp_show(1, display_nocheat, NULL) + ? ATP_POWER_OFF : ATP_PAGE_REFRESH; + } return ATP_PAGE_NOOPTION; } diff --git a/source/arm11/open_agb_firm.c b/source/arm11/open_agb_firm.c index 84302c7..bc4a93c 100644 --- a/source/arm11/open_agb_firm.c +++ b/source/arm11/open_agb_firm.c @@ -919,8 +919,9 @@ Result oafInitAndRun(void) #ifdef NDEBUG // Force black and turn the backlight off on the bottom screen. // Don't turn the backlight off on 2DS (1 panel). - GFX_setForceBlack(false, true); - if(MCU_getSystemModel() != 3) GFX_powerOffBacklights(GFX_BLIGHT_BOT); + if( g_oafConfig.scaler==3 ) GFX_setForceBlack(true, false); + else GFX_setForceBlack(false, true); + if(MCU_getSystemModel() != 3) GFX_powerOffBacklights(g_oafConfig.scaler==3 ? GFX_BLIGHT_TOP : GFX_BLIGHT_BOT); #endif // Initialize the legacy frame buffer and frame handler.