From b200e83b02967c55d6b04077f3b88b3efb3ecf85 Mon Sep 17 00:00:00 2001 From: skidau Date: Mon, 9 Mar 2015 08:32:14 +1100 Subject: [PATCH] Fixed the wiimote profiles not taking effect. --- Source/Core/Core/HW/Wiimote.cpp | 2 +- Source/Core/DolphinWX/FrameTools.cpp | 5 +---- Source/Core/DolphinWX/InputConfigDiag.cpp | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Source/Core/Core/HW/Wiimote.cpp b/Source/Core/Core/HW/Wiimote.cpp index 756384ca30..13797a1180 100644 --- a/Source/Core/Core/HW/Wiimote.cpp +++ b/Source/Core/Core/HW/Wiimote.cpp @@ -57,7 +57,7 @@ void Initialize(void* const hwnd, bool wait) void LoadConfig() { - s_config.LoadConfig(true); + s_config.LoadConfig(false); } diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index fda4f4ee0e..ec28339369 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -1362,8 +1362,6 @@ void CFrame::OnConfigMenuCommands(wxCommandEvent& WXUNUSED(event)) void CFrame::OnConfigHotkey(wxCommandEvent& WXUNUSED (event)) { - bool was_init = false; - InputConfig* const hotkey_plugin = HotkeyManagerEmu::GetConfig(); // check if game is running @@ -1380,8 +1378,7 @@ void CFrame::OnConfigHotkey(wxCommandEvent& WXUNUSED (event)) m_ConfigFrame.ShowModal(); // Update references in case controllers were refreshed - if (SConfig::GetInstance().m_LocalCoreStartupParameter.bWii) - Wiimote::LoadConfig(); + Wiimote::LoadConfig(); Keyboard::LoadConfig(); Pad::LoadConfig(); HotkeyManagerEmu::LoadConfig(); diff --git a/Source/Core/DolphinWX/InputConfigDiag.cpp b/Source/Core/DolphinWX/InputConfigDiag.cpp index d45458535a..4c3d70c99a 100644 --- a/Source/Core/DolphinWX/InputConfigDiag.cpp +++ b/Source/Core/DolphinWX/InputConfigDiag.cpp @@ -757,7 +757,6 @@ void GamepadPage::RefreshDevices(wxCommandEvent&) // update device cbox m_config_dialog->UpdateDeviceComboBox(); - //if (SConfig::GetInstance().m_LocalCoreStartupParameter.bWii) Wiimote::LoadConfig(); Keyboard::LoadConfig(); Pad::LoadConfig();