projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20001206-1-src
[rocksndiamonds.git]
/
src
/
libgame
/
system.c
diff --git
a/src/libgame/system.c
b/src/libgame/system.c
index 07d4de7986f2d164aef559a12e4bda7c2893f68a..341da455c5f8f7487613279510d42362bf7e30e9 100644
(file)
--- 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(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)
}
void ClosePlatformDependantStuff(void)