mirror of
https://github.com/libretro/RetroArch
synced 2025-03-21 04:21:13 +00:00
Add logging to SDL_Init().
This commit is contained in:
parent
884c113645
commit
8c5d86a6eb
@ -77,13 +77,16 @@ void sdlwrap_set_swap_interval(unsigned interval, bool inited)
|
||||
bool sdlwrap_init(void)
|
||||
{
|
||||
#if SDL_MODERN
|
||||
return SDL_VideoInit(NULL) == 0;
|
||||
bool ret = SDL_VideoInit(NULL) == 0;
|
||||
#else
|
||||
if (SDL_WasInit(SDL_INIT_VIDEO))
|
||||
return true;
|
||||
|
||||
return SDL_Init(SDL_INIT_VIDEO) == 0;
|
||||
bool ret = SDL_Init(SDL_INIT_VIDEO) == 0;
|
||||
#endif
|
||||
if (!ret)
|
||||
SSNES_ERR("Failed to init SDL video!\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if SDL_MODERN
|
||||
|
Loading…
x
Reference in New Issue
Block a user