Read the initial input before entering the update warning to be able to show both menus when autoboot is active.

This commit is contained in:
Maschell 2023-01-11 10:50:20 +01:00
parent 84d93d8794
commit 4208bbc235

View File

@ -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<uint32_t, std::string> menu;
menu[BOOT_OPTION_WII_U_MENU] = "Wii U Menu";
if (showHBL) {