From a976ac2428418bd70837850bd83bacdc109c1902 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 19 Jul 2009 03:51:07 +0000 Subject: [PATCH] Made the version command print which external libraries were disabled. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3315 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/common.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/engine/common/common.c b/engine/common/common.c index 37cb38eb..1725c9c0 100644 --- a/engine/common/common.c +++ b/engine/common/common.c @@ -3033,6 +3033,35 @@ void COM_Version_f (void) Con_Printf("Unknown Microsoft C++ compiler: %i %i\n",_MSC_VER, _MSC_FULL_VER); #endif } +#endif + + //print out which libraries are disabled +#ifndef AVAIL_ZLIB + Con_Printf("zlib disabled\n"); +#endif + + //but print client ones only if we're not dedicated +#ifndef SERVERONLY +#ifndef AVAIL_PNGLIB + Con_Printf("libpng disabled\n"); +#endif +#ifndef AVAIL_JPEGLIB + Con_Printf("libjpeg disabled\n"); +#endif +#ifndef AVAIL_OGGVORBIS + Con_Printf("libvorbis disabled\n"); +#endif +#ifndef AVAIL_FREETYPE + Con_Printf("freetype2 disabled\n"); +#endif +#ifdef _WIN32 + #ifndef AVAIL_DINPUT + Con_Printf("dinput disabled\n"); + #endif + #ifndef AVAIL_DSOUND + Con_Printf("dsound disabled\n"); + #endif +#endif #endif }