Directly call AXQuit to avoid rare crashes

This commit is contained in:
Maschell 2023-03-31 14:39:15 +02:00
parent 1bff430b7d
commit 603478ccc6

View File

@ -31,6 +31,7 @@ int32_t main(int32_t argc, char **argv) {
initLogging(); initLogging();
DEBUG_FUNCTION_LINE("Hello from Autoboot Module"); DEBUG_FUNCTION_LINE("Hello from Autoboot Module");
AXInit(); AXInit();
AXQuit();
// Clear screen to avoid screen corruptions when loading the Wii U Menu // Clear screen to avoid screen corruptions when loading the Wii U Menu
clearScreen(); clearScreen();
@ -38,7 +39,7 @@ int32_t main(int32_t argc, char **argv) {
initExternalStorage(); initExternalStorage();
if (getQuickBoot()) { if (getQuickBoot()) {
AXQuit();
deinitLogging(); deinitLogging();
return 0; return 0;
} }
@ -132,7 +133,6 @@ int32_t main(int32_t argc, char **argv) {
bootWiiUMenu(); bootWiiUMenu();
} }
AXQuit();
Mocha_DeInitLibrary(); Mocha_DeInitLibrary();
deinitLogging(); deinitLogging();