diff options
| author | Liam <byteslice@airmail.cc> | 2022-06-10 12:49:18 -0400 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2022-06-10 12:49:18 -0400 |
| commit | 57679dbf5193e2ceedbb3f199b0255809516b58c (patch) | |
| tree | 700ce19fd6f742fca73395b873f958dfd105f354 /src | |
| parent | c14f683322f7e66c4c9ca9a4695aa92197d4e5ca (diff) | |
yuzu-cmd: ignore bogus timeous from SDL
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp index 71c413e647..8e38724dbc 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp @@ -162,7 +162,15 @@ void EmuWindow_SDL2::WaitEvent() { SDL_Event 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); } |
