X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=341da455c5f8f7487613279510d42362bf7e30e9;hb=d2098db6b7b0cee3b43e341c012beec5bc6ef6bd;hp=07d4de7986f2d164aef559a12e4bda7c2893f68a;hpb=2ae6ae8ed951e87fcba7c363705cd6ddea8de91c;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index 07d4de79..341da455 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -89,6 +89,11 @@ void InitPlatformDependantStuff(void) #if !defined(PLATFORM_UNIX) initErrorFile(); #endif + +#if defined(TARGET_SDL) + if (SDL_Init(SDL_INIT_EVENTTHREAD | SDL_INIT_NOPARACHUTE) < 0) + Error(ERR_EXIT, "SDL_Init() failed: %s", SDL_GetError()); +#endif } void ClosePlatformDependantStuff(void)