From 603478ccc638dee1ad9fc4ea359024cf48fa34b8 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 31 Mar 2023 14:39:15 +0200 Subject: [PATCH] Directly call AXQuit to avoid rare crashes --- source/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index dfdec30..0348fa8 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -31,6 +31,7 @@ int32_t main(int32_t argc, char **argv) { initLogging(); DEBUG_FUNCTION_LINE("Hello from Autoboot Module"); AXInit(); + AXQuit(); // Clear screen to avoid screen corruptions when loading the Wii U Menu clearScreen(); @@ -38,7 +39,7 @@ int32_t main(int32_t argc, char **argv) { initExternalStorage(); if (getQuickBoot()) { - AXQuit(); + deinitLogging(); return 0; } @@ -132,7 +133,6 @@ int32_t main(int32_t argc, char **argv) { bootWiiUMenu(); } - AXQuit(); Mocha_DeInitLibrary(); deinitLogging();