Need to check the quit flag here too

This commit is contained in:
Henrik Rydgård 2014-02-12 12:45:26 +01:00
parent 5557c6801b
commit 6f6c81ce19

View File

@ -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) {