Make sure some things are logged (#5515)

* sdl_impl.cpp: actually log the sdl error

* Log cpu slider and vsync
This commit is contained in:
Vitor K 2020-09-30 22:23:37 -03:00 committed by GitHub
parent a26b466ac8
commit ff9c3b0531
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -470,7 +470,7 @@ SDLState::SDLState() {
return;
}
if (SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1") == SDL_FALSE) {
LOG_ERROR(Input, "Failed to set Hint for background events", SDL_GetError());
LOG_ERROR(Input, "Failed to set Hint for background events: {}", SDL_GetError());
}
// these hints are only defined on sdl2.0.9 or higher
#if SDL_VERSION_ATLEAST(2, 0, 9)