mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix #20356 - Flatpak application doesn't close until controller is unplugged.
When the controller is connected SLD sends a lot of events (`SDL_JOYAXISMOTION` and etc.), so PPSSPP is stuck in the loop to process these events. Fixed by duplicating the `if` statement to check whether the quit was requested inside the loop.
This commit is contained in:
1 file changed
+4
@@ -1797,8 +1797,12 @@ int main(int argc, char *argv[]) {
|
||||
while (true) {
|
||||
SDL_Event event;
|
||||
while (SDL_WaitEventTimeout(&event, 100)) {
|
||||
if (g_QuitRequested || g_RestartRequested)
|
||||
break;
|
||||
|
||||
ProcessSDLEvent(window, event, &inputTracker);
|
||||
}
|
||||
|
||||
if (g_QuitRequested || g_RestartRequested)
|
||||
break;
|
||||
|
||||
|
||||
Reference in new issue
Block a user