From 7dcb6a3e6c344e864afb77c0b859fbbbaefa680b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 23 Mar 2015 08:32:30 -0400 Subject: [PATCH] DolphinWX: Initialize the HotkeyManager after input backends are initialized Previously OSX would crash upon loading. This is because the UI would be polling for hotkey inputs but was doing so before the inputs backends were initialized. --- Source/Core/DolphinWX/Frame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/Frame.cpp b/Source/Core/DolphinWX/Frame.cpp index 1974717ef5..66d5409bc1 100644 --- a/Source/Core/DolphinWX/Frame.cpp +++ b/Source/Core/DolphinWX/Frame.cpp @@ -358,15 +358,15 @@ bool CFrame::InitControllers() { #if defined(HAVE_X11) && HAVE_X11 Window win = X11Utils::XWindowFromHandle(GetHandle()); - HotkeyManagerEmu::Initialize(reinterpret_cast(win)); Pad::Initialize(reinterpret_cast(win)); Keyboard::Initialize(reinterpret_cast(win)); Wiimote::Initialize(reinterpret_cast(win)); + HotkeyManagerEmu::Initialize(reinterpret_cast(win)); #else - HotkeyManagerEmu::Initialize(reinterpret_cast(GetHandle())); Pad::Initialize(reinterpret_cast(GetHandle())); Keyboard::Initialize(reinterpret_cast(GetHandle())); Wiimote::Initialize(reinterpret_cast(GetHandle())); + HotkeyManagerEmu::Initialize(reinterpret_cast(GetHandle())); #endif return true; }