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
6d909f21fe
commit
f74d0996fd
@ -53,7 +53,7 @@ int main(void)
|
|||||||
if(res == RES_OK) res = oafParseConfigEarly();
|
if(res == RES_OK) res = oafParseConfigEarly();
|
||||||
GFX_init(GFX_BGR8, GFX_RGB565);
|
GFX_init(GFX_BGR8, GFX_RGB565);
|
||||||
setBacklight();
|
setBacklight();
|
||||||
consoleInit(SCREEN_TOP, NULL);
|
consoleInit(SCREEN_BOT, NULL);
|
||||||
//CODEC_init();
|
//CODEC_init();
|
||||||
|
|
||||||
if(res == RES_OK && (res = oafInitAndRun()) == RES_OK)
|
if(res == RES_OK && (res = oafInitAndRun()) == RES_OK)
|
||||||
|
@ -864,7 +864,6 @@ u8 oafGetBacklightConfig(void)
|
|||||||
Result oafInitAndRun(void)
|
Result oafInitAndRun(void)
|
||||||
{
|
{
|
||||||
Result res;
|
Result res;
|
||||||
GFX_setDoubleBuffering(SCREEN_BOT, false);
|
|
||||||
char *const filePath = (char*)calloc(512, 1);
|
char *const filePath = (char*)calloc(512, 1);
|
||||||
if(filePath != NULL)
|
if(filePath != NULL)
|
||||||
{
|
{
|
||||||
@ -901,6 +900,7 @@ Result oafInitAndRun(void)
|
|||||||
// Prepare ARM9 for GBA mode + save loading.
|
// Prepare ARM9 for GBA mode + save loading.
|
||||||
if((res = LGY_prepareGbaMode(g_oafConfig.directBoot, saveType, filePath)) == RES_OK)
|
if((res = LGY_prepareGbaMode(g_oafConfig.directBoot, saveType, filePath)) == RES_OK)
|
||||||
{
|
{
|
||||||
|
ee_puts("\x1b[2J");
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
// Force black and turn the backlight off on the bottom screen.
|
// Force black and turn the backlight off on the bottom screen.
|
||||||
// Don't turn the backlight off on 2DS (1 panel).
|
// Don't turn the backlight off on 2DS (1 panel).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user