From 6f6c81ce190b04d97708eafad6bbdceecf2c33ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 12 Feb 2014 12:45:26 +0100 Subject: [PATCH] Need to check the quit flag here too --- base/PCMain.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/PCMain.cpp b/base/PCMain.cpp index 89b78d75c1..0e0958e798 100644 --- a/base/PCMain.cpp +++ b/base/PCMain.cpp @@ -751,15 +751,15 @@ int main(int argc, char *argv[]) { break; } } - if (g_QuitRequested) break; - const uint8 *keys = (const uint8 *)SDL_GetKeyState(NULL); SimulateGamepad(keys, &input_state); input_state.pad_buttons = pad_buttons; UpdateInputState(&input_state, true); NativeUpdate(input_state); + if (g_QuitRequested) + break; NativeRender(); #if defined(PPSSPP) && !defined(MAEMO) if (lastUIState != globalUIState) {