1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-29 11:24:19 +01:00

Updated Dota detection.

--HG--
extra : rebase_source : db72120da5c3ab853a27eb5f92f1a33886fa0a28
This commit is contained in:
Nicholas Hastings 2013-06-18 12:15:29 -04:00
parent ccd613ecb1
commit 26d5160169

View File

@ -264,13 +264,13 @@ mm_GetGameName(char *buffer, size_t size)
MetamodBackend
mm_DetermineBackend(QueryValveInterface engineFactory, const char *game_name)
{
/* Check for L4D */
if (engineFactory("VEngineServer023", NULL) != NULL)
if (engineFactory("VEngineServer024", NULL) != NULL)
{
if (engineFactory("ISERVERPLUGINHELPERS001", NULL) != NULL)
return MMBackend_CSGO;
else
return MMBackend_DOTA;
return MMBackend_DOTA;
}
else if (engineFactory("VEngineServer023", NULL) != NULL)
{
return MMBackend_CSGO;
}
else if (engineFactory("VEngineServer022", NULL) != NULL &&
engineFactory("VEngineCvar007", NULL) != NULL)