mirror of
https://github.com/wiiu-env/AutobootModule.git
synced 2024-11-16 16:29:14 +01:00
Fade out Audio when opening the AutobootModule menu
This commit is contained in:
parent
931a2d7c15
commit
cba78201c6
@ -1,6 +1,5 @@
|
||||
#include "BootUtils.h"
|
||||
#include "ACTAccountInfo.h"
|
||||
#include "DrawUtils.h"
|
||||
#include "MenuUtils.h"
|
||||
#include "logger.h"
|
||||
#include <codecvt>
|
||||
@ -12,6 +11,7 @@
|
||||
#include <nn/act.h>
|
||||
#include <nn/cmpt/cmpt.h>
|
||||
#include <padscore/kpad.h>
|
||||
#include <sndcore2/core.h>
|
||||
#include <string>
|
||||
#include <sysapp/launch.h>
|
||||
#include <sysapp/title.h>
|
||||
@ -74,6 +74,9 @@ void handleAccountSelection() {
|
||||
}
|
||||
|
||||
if (accountInfoList.size() > 0) {
|
||||
if (!AXIsInit()) {
|
||||
AXInit();
|
||||
}
|
||||
auto slot = handleAccountSelectScreen(accountInfoList);
|
||||
|
||||
DEBUG_FUNCTION_LINE("Load slot %d", slot);
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include <malloc.h>
|
||||
#include <memory>
|
||||
#include <mocha/mocha.h>
|
||||
#include <sndcore2/core.h>
|
||||
#include <string>
|
||||
#include <sysapp/title.h>
|
||||
#include <vector>
|
||||
@ -528,6 +529,9 @@ bool handleDiscInsertScreen(uint64_t expectedTitleId, uint64_t *titleIdToLaunch)
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!AXIsInit()) {
|
||||
AXInit();
|
||||
}
|
||||
// When an unexpected disc was inserted we need to eject it first.
|
||||
bool allowDisc = !wrongDiscInserted;
|
||||
|
||||
|
@ -36,8 +36,6 @@ bool gUpdatesBlocked = false;
|
||||
int32_t main(int32_t argc, char **argv) {
|
||||
initLogging();
|
||||
DEBUG_FUNCTION_LINE("Hello from Autoboot Module");
|
||||
AXInit();
|
||||
AXQuit();
|
||||
|
||||
InputUtils::Init();
|
||||
|
||||
@ -79,6 +77,9 @@ int32_t main(int32_t argc, char **argv) {
|
||||
if (FSAOpenDir(client, "/vol/storage_mlc01/sys/update", &dirHandle) >= 0) {
|
||||
FSACloseDir(client, dirHandle);
|
||||
gUpdatesBlocked = false;
|
||||
if (!AXIsInit()) {
|
||||
AXInit();
|
||||
}
|
||||
handleUpdateWarningScreen();
|
||||
} else {
|
||||
FSAStat st{};
|
||||
@ -127,6 +128,9 @@ int32_t main(int32_t argc, char **argv) {
|
||||
(bootSelection == BOOT_OPTION_HOMEBREW_LAUNCHER && !showHBL) ||
|
||||
(bootSelection == BOOT_OPTION_VWII_HOMEBREW_CHANNEL && !showvHBL) ||
|
||||
(buttons.hold & VPAD_BUTTON_PLUS)) {
|
||||
if (!AXIsInit()) {
|
||||
AXInit();
|
||||
}
|
||||
bootSelection = handleMenuScreen(configPath, bootSelection, menu);
|
||||
}
|
||||
|
||||
@ -163,6 +167,10 @@ int32_t main(int32_t argc, char **argv) {
|
||||
InputUtils::DeInit();
|
||||
Mocha_DeInitLibrary();
|
||||
deinitLogging();
|
||||
if (AXIsInit()) {
|
||||
AXQuit();
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user