From 9ec5a4544f207a31678e6c5c7636873e9d9e88a1 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Fri, 5 Jun 2015 19:34:06 +0200 Subject: SDL: handle SDL_QUIT event Using SDL_INIT_JOYSTICK implies SDL_INIT_EVENTS which installs a signal handler for SIGINT and SIGTERM. There will be a way to prevent this in 2.0.4 but for now we'll need to handle SDL_QUIT. --- Source/Core/DolphinWX/MainNoGUI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/DolphinWX/MainNoGUI.cpp') diff --git a/Source/Core/DolphinWX/MainNoGUI.cpp b/Source/Core/DolphinWX/MainNoGUI.cpp index 9186742d46..313ad0b20f 100644 --- a/Source/Core/DolphinWX/MainNoGUI.cpp +++ b/Source/Core/DolphinWX/MainNoGUI.cpp @@ -49,7 +49,7 @@ void Host_RefreshDSPDebuggerWindow() {} static Common::Event updateMainFrameEvent; void Host_Message(int Id) { - if (Id == WM_USER_STOP) + if (Id == WM_USER_STOP || Id == WM_USER_QUIT) running = false; } -- cgit v1.2.3