From 0e30c81e4a90bbfadb25ad42c23537cfc0d6e855 Mon Sep 17 00:00:00 2001 From: Maschell Date: Wed, 11 Jan 2023 10:50:20 +0100 Subject: [PATCH] Read the initial input before entering the update warning to be able to show both menus when autoboot is active. --- source/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index ecd2f47..679ad0e 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -47,6 +47,10 @@ int32_t main(int32_t argc, char **argv) { OSFatal("AutobootModule: Mocha_InitLibrary failed"); } + VPADStatus vpad{}; + // Buffer vpad read. + VPADRead(VPAD_CHAN_0, &vpad, 1, nullptr); + FSAInit(); auto client = FSAAddClient(nullptr); if (client > 0) { @@ -77,9 +81,6 @@ int32_t main(int32_t argc, char **argv) { int32_t bootSelection = readAutobootOption(configPath); - VPADStatus vpad{}; - VPADRead(VPAD_CHAN_0, &vpad, 1, nullptr); - std::map menu; menu[BOOT_OPTION_WII_U_MENU] = "Wii U Menu"; if (showHBL) {