mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
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.
This commit is contained in:
@ -778,6 +778,10 @@ void CFrame::OnHostMessage(wxCommandEvent& event)
|
||||
case IDM_STOPPED:
|
||||
OnStopped();
|
||||
break;
|
||||
|
||||
case WM_USER_QUIT:
|
||||
Close(true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user