core-legacy/concommands.cpp
changeset 887 e30d4a37f5e5
parent 714 966f819588a2
     1.1 --- a/core-legacy/concommands.cpp	Mon Nov 18 12:57:33 2013 -0800
     1.2 +++ b/core-legacy/concommands.cpp	Sat Nov 23 19:10:27 2013 -0800
     1.3 @@ -16,6 +16,7 @@
     1.4  #include "sh_string.h"
     1.5  #include "sh_list.h"
     1.6  #include "util.h"
     1.7 +#include <versionlib.h>
     1.8  
     1.9  /**
    1.10   * @brief Console Command Implementations
    1.11 @@ -105,7 +106,7 @@
    1.12  	}
    1.13  }
    1.14  
    1.15 -ConVar metamod_version("metamod_version", MMS_FULL_VERSION, FCVAR_SPONLY | FCVAR_NOTIFY, "Metamod:Source Version");
    1.16 +ConVar metamod_version("metamod_version", METAMOD_VERSION, FCVAR_SPONLY | FCVAR_NOTIFY, "Metamod:Source Version");
    1.17  #ifdef OS_WIN32
    1.18  ConVar mm_pluginsfile("mm_pluginsfile", "addons\\metamod\\metaplugins.ini", FCVAR_SPONLY, "Metamod:Source Plugins File");
    1.19  ConVar mm_basedir("mm_basedir", "addons\\metamod", FCVAR_SPONLY, "Metamod:Source base folder");
    1.20 @@ -140,8 +141,8 @@
    1.21  			
    1.22  			return;
    1.23  		} else if (strcmp(command, "version") == 0) {
    1.24 -			CONMSG("Metamod:Source version %s\n", MMS_FULL_VERSION);
    1.25 -			CONMSG("Build ID: %s\n", MMS_BUILD_UNIQUEID);
    1.26 +			CONMSG("Metamod:Source version %s\n", METAMOD_VERSION);
    1.27 +			CONMSG("Build ID: %s\n", METAMOD_BUILD_ID);
    1.28  			if (g_GameDll.loaded)
    1.29  			{
    1.30  				CONMSG("Loaded As: GameDLL (gameinfo.txt)\n");
    1.31 @@ -644,7 +645,7 @@
    1.32  
    1.33  				RETURN_META(MRES_SUPERCEDE);
    1.34  			} else if(strcmp(subcmd, "version") == 0) {
    1.35 -				CLIENT_CONMSG(client, "Metamod:Source version %s\n", MMS_FULL_VERSION);
    1.36 +				CLIENT_CONMSG(client, "Metamod:Source version %s\n", METAMOD_VERSION);
    1.37  				CLIENT_CONMSG(client, "Compiled on: %s\n", SOURCEMM_DATE);
    1.38  				CLIENT_CONMSG(client, "Plugin interface version: %d:%d\n", PLAPI_VERSION, PLAPI_MIN_VERSION);
    1.39  				CLIENT_CONMSG(client, "SourceHook version: %d:%d\n", g_SourceHook.GetIfaceVersion(), g_SourceHook.GetImplVersion());