mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-12 20:55:56 +00:00
sdl: Fix use of functions that now return SDL_bool (#1160)
This commit is contained in:
parent
d9f287eaa2
commit
398019867b
3 changed files with 5 additions and 5 deletions
|
@ -23,7 +23,7 @@ namespace Frontend {
|
|||
WindowSDL::WindowSDL(s32 width_, s32 height_, Input::GameController* controller_,
|
||||
std::string_view window_title)
|
||||
: width{width_}, height{height_}, controller{controller_} {
|
||||
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
|
||||
if (!SDL_Init(SDL_INIT_VIDEO)) {
|
||||
UNREACHABLE_MSG("Failed to initialize SDL video subsystem: {}", SDL_GetError());
|
||||
}
|
||||
SDL_InitSubSystem(SDL_INIT_AUDIO);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue