mirror of
https://github.com/wiiu-env/AutobootModule.git
synced 2024-11-14 15:35:05 +01:00
Stop sound when entering the AutobootModule
This commit is contained in:
parent
af68c340cf
commit
26c5141ce0
@ -9,6 +9,7 @@
|
|||||||
#include <gx2/state.h>
|
#include <gx2/state.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <mocha/mocha.h>
|
#include <mocha/mocha.h>
|
||||||
|
#include <sndcore2/core.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <vpad/input.h>
|
#include <vpad/input.h>
|
||||||
@ -29,6 +30,7 @@ void clearScreen() {
|
|||||||
int32_t main(int32_t argc, char **argv) {
|
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();
|
||||||
|
|
||||||
// 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();
|
||||||
@ -36,6 +38,7 @@ int32_t main(int32_t argc, char **argv) {
|
|||||||
initExternalStorage();
|
initExternalStorage();
|
||||||
|
|
||||||
if (getQuickBoot()) {
|
if (getQuickBoot()) {
|
||||||
|
AXQuit();
|
||||||
deinitLogging();
|
deinitLogging();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@ -124,7 +127,9 @@ int32_t main(int32_t argc, char **argv) {
|
|||||||
bootWiiUMenu();
|
bootWiiUMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
deinitLogging();
|
AXQuit();
|
||||||
Mocha_DeInitLibrary();
|
Mocha_DeInitLibrary();
|
||||||
|
deinitLogging();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user