From 926aadb464b014e1486d8df0187556cdef86ee7c Mon Sep 17 00:00:00 2001 From: Maschell Date: Thu, 30 Dec 2021 15:23:32 +0100 Subject: [PATCH] Fix launching the HBL from Browser when opening the Autoboot Menu --- source/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/main.cpp b/source/main.cpp index e5f4f98..216c819 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -352,7 +352,11 @@ int32_t handleMenuScreen(int32_t autobootOptionInput) { DrawUtils::deinitFont(); - OSScreenShutdown(); + if (OSGetTitleID() == _SYSGetSystemApplicationTitleId(SYSTEM_APP_ID_MII_MAKER) && autoboot == BOOT_OPTION_HOMEBREW_LAUNCHER) { + // When we're already in the Mii Maker and we want to launch the HBL, "OSScreenShutdown" will cause a black screen. + } else { + OSScreenShutdown(); + } free(screenBuffer);