mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
sdlayer.c: minor stylistic simplification of sdlayer_checkversion(). DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@4964 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
c6b9fa52d9
commit
1a7816065c
1 changed files with 4 additions and 5 deletions
|
@ -398,17 +398,16 @@ int32_t sdlayer_checkversion(void);
|
||||||
int32_t sdlayer_checkversion(void)
|
int32_t sdlayer_checkversion(void)
|
||||||
{
|
{
|
||||||
SDL_version compiled;
|
SDL_version compiled;
|
||||||
SDL_version linked_;
|
SDL_version linked;
|
||||||
const SDL_version *linked = &linked_;
|
|
||||||
SDL_GetVersion(&linked_);
|
|
||||||
|
|
||||||
|
SDL_GetVersion(&linked);
|
||||||
SDL_VERSION(&compiled);
|
SDL_VERSION(&compiled);
|
||||||
|
|
||||||
initprintf("Initializing SDL system interface "
|
initprintf("Initializing SDL system interface "
|
||||||
"(compiled against SDL version %d.%d.%d, found version %d.%d.%d)\n",
|
"(compiled against SDL version %d.%d.%d, found version %d.%d.%d)\n",
|
||||||
compiled.major, compiled.minor, compiled.patch, linked->major, linked->minor, linked->patch);
|
compiled.major, compiled.minor, compiled.patch, linked.major, linked.minor, linked.patch);
|
||||||
|
|
||||||
if (SDL_VERSIONNUM(linked->major,linked->minor,linked->patch) < SDL_REQUIREDVERSION)
|
if (SDL_VERSIONNUM(linked.major, linked.minor, linked.patch) < SDL_REQUIREDVERSION)
|
||||||
{
|
{
|
||||||
/*reject running under SDL versions older than what is stated in sdl_inc.h */
|
/*reject running under SDL versions older than what is stated in sdl_inc.h */
|
||||||
initprintf("You need at least v%d.%d.%d of SDL to run this game\n",SDL_MIN_X,SDL_MIN_Y,SDL_MIN_Z);
|
initprintf("You need at least v%d.%d.%d of SDL to run this game\n",SDL_MIN_X,SDL_MIN_Y,SDL_MIN_Z);
|
||||||
|
|
Loading…
Reference in a new issue