1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-19 08:52:34 +01:00

added ServerGameClients info output to the "meta game" command

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40405
This commit is contained in:
David Anderson 2007-06-01 17:28:11 +00:00
parent 4cb1720827
commit 3a6f1df52d
3 changed files with 6 additions and 1 deletions

View File

@ -154,7 +154,7 @@ CON_COMMAND(meta, "Metamod:Source Menu")
CONMSG(" Description: %s\n", g_GameDll.pGameDLL->GetGameDescription());
CONMSG(" Mod Path: %s\n", g_ModPath.c_str());
CONMSG(" DLL Path: %s\n", g_BinPath.c_str());
CONMSG(" Interface: ServerGameDLL%03d\n", g_GameDllVersion);
CONMSG(" Interface: ServerGameDLL%03d, ServerGameClients%03d\n", g_GameDllVersion, g_GameClientsVersion);
// Display user messages
if (g_SmmAPI.MsgCacheSuccessful())

View File

@ -57,6 +57,7 @@ bool gParsedGameInfo = false;
bool bGameInit = false;
SourceHook::List<GameDllInfo *> gamedll_list;
int g_GameDllVersion = 0;
int g_GameClientsVersion = 0;
int g_VspVersion = 0;
const char VSPIFACE[] = "ISERVERPLUGINCALLBACKS";
const char GAMEINFO_PATH[] = "|gameinfo_path|";
@ -448,6 +449,7 @@ SMM_API void *CreateInterface(const char *iface, int *ret)
{
void *ptr = (g_GameDll.factory)(iface, ret);
g_GameDll.pGameClients = static_cast<IServerGameClients *>(ptr);
g_GameClientsVersion = atoi(&iface[17]);
return ptr;
}

View File

@ -120,6 +120,9 @@ extern int g_GameDllVersion;
/** @brief Highest IServerPluginCallbacks version that is supported by engine */
extern int g_VspVersion;
/** @brief IServerGameClients version the mod uses */
extern int g_GameClientsVersion;
extern bool bGameInit;
#endif //_INCLUDE_SOURCEMM_H