yuzu-emu
/
yuzu
Archived
1
0
Fork 0

yuzu-cmd: ignore bogus timeous from SDL

This commit is contained in:
Liam 2022-06-10 12:49:18 -04:00
parent 1f0fee33ed
commit c3cc65a11e
1 changed files with 9 additions and 1 deletions

View File

@ -162,7 +162,15 @@ void EmuWindow_SDL2::WaitEvent() {
SDL_Event event; SDL_Event event;
if (!SDL_WaitEvent(&event)) { if (!SDL_WaitEvent(&event)) {
LOG_CRITICAL(Frontend, "SDL_WaitEvent failed: {}", SDL_GetError()); const char* error = SDL_GetError();
if (!error || strcmp(error, "") == 0) {
// https://github.com/libsdl-org/SDL/issues/5780
// Sometimes SDL will return without actually having hit an error condition;
// just ignore it in this case.
return;
}
LOG_CRITICAL(Frontend, "SDL_WaitEvent failed: {}", error);
exit(1); exit(1);
} }