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:
Tillmann Karras
2015-06-05 19:34:06 +02:00
parent 2f2e514b54
commit 9ec5a4544f
6 changed files with 26 additions and 9 deletions

View File

@ -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;
}