From 9d8d14d192c26aecc6d94b12c8fc3767f5a5b440 Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 11 Jan 2023 10:46:58 +0100 Subject: [PATCH] Stop sound when entering the AutobootModule --- source/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/main.cpp b/source/main.cpp index ceccdd0..ecd2f47 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -29,6 +30,7 @@ void clearScreen() { int32_t main(int32_t argc, char **argv) { initLogging(); DEBUG_FUNCTION_LINE("Hello from Autoboot Module"); + AXInit(); // Clear screen to avoid screen corruptions when loading the Wii U Menu clearScreen(); @@ -36,6 +38,7 @@ int32_t main(int32_t argc, char **argv) { initExternalStorage(); if (getQuickBoot()) { + AXQuit(); deinitLogging(); return 0; } @@ -124,7 +127,9 @@ int32_t main(int32_t argc, char **argv) { bootWiiUMenu(); } - deinitLogging(); + AXQuit(); Mocha_DeInitLibrary(); + deinitLogging(); + return 0; }