Browse Source
Merge pull request #12527 from DCNick3/log-more-sdl-errors
Report more SDL errors
pull/15/merge
liamwhite
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
2 deletions
-
src/yuzu_cmd/emu_window/emu_window_sdl2.cpp
-
src/yuzu_cmd/emu_window/emu_window_sdl2_vk.cpp
|
|
|
@ -20,7 +20,7 @@ EmuWindow_SDL2::EmuWindow_SDL2(InputCommon::InputSubsystem* input_subsystem_, Co |
|
|
|
: input_subsystem{input_subsystem_}, system{system_} { |
|
|
|
input_subsystem->Initialize(); |
|
|
|
if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_JOYSTICK | SDL_INIT_GAMECONTROLLER) < 0) { |
|
|
|
LOG_CRITICAL(Frontend, "Failed to initialize SDL2! Exiting..."); |
|
|
|
LOG_CRITICAL(Frontend, "Failed to initialize SDL2: {}, Exiting...", SDL_GetError()); |
|
|
|
exit(1); |
|
|
|
} |
|
|
|
SDL_SetMainReady(); |
|
|
|
|
|
|
|
@ -28,7 +28,8 @@ EmuWindow_SDL2_VK::EmuWindow_SDL2_VK(InputCommon::InputSubsystem* input_subsyste |
|
|
|
SDL_SysWMinfo wm; |
|
|
|
SDL_VERSION(&wm.version); |
|
|
|
if (SDL_GetWindowWMInfo(render_window, &wm) == SDL_FALSE) { |
|
|
|
LOG_CRITICAL(Frontend, "Failed to get information from the window manager"); |
|
|
|
LOG_CRITICAL(Frontend, "Failed to get information from the window manager: {}", |
|
|
|
SDL_GetError()); |
|
|
|
std::exit(EXIT_FAILURE); |
|
|
|
} |
|
|
|
|
|
|
|
|