调整release版本,试试看能不能跑

This commit is contained in:
anod 2022-10-22 09:43:09 +08:00
parent fc6c84b132
commit 5ca7fb795d
2 changed files with 10 additions and 2 deletions

View File

@ -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;
}

View File

@ -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.