From d5949d4a3129f9a8407d7e030a2a2861415f0d17 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Fri, 6 Dec 2019 17:38:04 -0800 Subject: [PATCH] Fix balance board TAS input not showing up Caused by 547740984 changing the name to BalanceBoard, which broke the assumption that the section was named Wiimote5 --- Source/Core/DolphinQt/TAS/WiiTASInputWindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/TAS/WiiTASInputWindow.cpp b/Source/Core/DolphinQt/TAS/WiiTASInputWindow.cpp index 181f65de8a10..22da2ad65405 100644 --- a/Source/Core/DolphinQt/TAS/WiiTASInputWindow.cpp +++ b/Source/Core/DolphinQt/TAS/WiiTASInputWindow.cpp @@ -337,6 +337,10 @@ WiiTASInputWindow::WiiTASInputWindow(QWidget* parent, int num) : TASInputWindow( ext = static_cast(Wiimote::GetConfig()->GetController(num)) ->GetActiveExtensionNumber(); } + else if (num == WIIMOTE_BALANCE_BOARD) + { + ext = WiimoteEmu::ExtensionNumber::BALANCE_BOARD; + } else { IniFile ini; @@ -348,8 +352,6 @@ WiiTASInputWindow::WiiTASInputWindow(QWidget* parent, int num) : TASInputWindow( ext = WiimoteEmu::ExtensionNumber::NUNCHUK; if (extension == "Classic") ext = WiimoteEmu::ExtensionNumber::CLASSIC; - if (extension == "BalanceBoard") - ext = WiimoteEmu::ExtensionNumber::BALANCE_BOARD; } UpdateExt(ext); }