loader/loader.cpp
changeset 780 35f2a207badf
parent 763 e5a02b89021c
child 791 a1b97ab6e0b1
     1.1 --- a/loader/loader.cpp	Sat May 26 15:46:15 2012 -0400
     1.2 +++ b/loader/loader.cpp	Sat May 26 17:07:26 2012 -0400
     1.3 @@ -78,7 +78,9 @@
     1.4  	"2.ep2v",
     1.5  	"2.l4d",
     1.6  	"2.l4d2",
     1.7 -	"2.swarm"
     1.8 +	"2.swarm",
     1.9 +	"2.portal2",
    1.10 +	"2.csgo"
    1.11  };
    1.12  
    1.13  #if defined _WIN32
    1.14 @@ -267,9 +269,17 @@
    1.15  mm_DetermineBackend(QueryValveInterface engineFactory, const char *game_name)
    1.16  {
    1.17  	/* Check for L4D */
    1.18 -	if (engineFactory("VEngineServer022", NULL) != NULL &&
    1.19 +	if (engineFactory("VEngineServer023", NULL) != NULL)
    1.20 +	{
    1.21 +		return MMBackend_CSGO;
    1.22 +	}
    1.23 +	else if (engineFactory("VEngineServer022", NULL) != NULL &&
    1.24  		engineFactory("VEngineCvar007", NULL) != NULL)
    1.25  	{
    1.26 +		if (strcmp(game_name, "portal2") == 0)
    1.27 +		{
    1.28 +			return MMBackend_Portal2;
    1.29 +		}
    1.30  		if (engineFactory("EngineTraceServer004", NULL) != NULL)
    1.31  		{
    1.32  			return MMBackend_AlienSwarm;