Skip to content
Snippets Groups Projects
Commit 5ccf2a7b authored by Lioncash's avatar Lioncash
Browse files

input_common/sdl/sdl_impl: Correct logging string in SDLState constructor

If this path was ever taken, a runtime exception would occur due to the
lack of a formatting specifier to insert the error code into the format
string.
parent cfac942e
No related branches found
No related tags found
No related merge requests found
...@@ -467,7 +467,7 @@ SDLState::SDLState() { ...@@ -467,7 +467,7 @@ SDLState::SDLState() {
return; return;
} }
if (SDL_SetHint(SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS, "1") == SDL_FALSE) { 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 with: {}", SDL_GetError());
} }
SDL_AddEventWatch(&SDLEventWatcher, this); SDL_AddEventWatch(&SDLEventWatcher, this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment