继续使用下屏作为控制台

This commit is contained in:
anod 2022-10-19 20:46:50 +08:00
parent 6d909f21fe
commit f74d0996fd
2 changed files with 2 additions and 2 deletions

View File

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

View File

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