Fix detection on TF2-branch games after recent updates.

This commit is contained in:
Nicholas Hastings 2015-09-10 18:22:11 -04:00
parent e14b479fbf
commit c88af78b55

View File

@ -280,6 +280,11 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve
} }
else if (engineFactory("VEngineServer023", NULL) != NULL) else if (engineFactory("VEngineServer023", NULL) != NULL)
{ {
if (engineFactory("EngineTraceServer004", NULL) == NULL)
{
goto TF2branch;
}
if (engineFactory("IEngineSoundServer004", NULL) != NULL) if (engineFactory("IEngineSoundServer004", NULL) != NULL)
{ {
return MMBackend_Insurgency; return MMBackend_Insurgency;
@ -358,6 +363,7 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve
} }
else else
{ {
TF2branch:
void *lib = (void *)serverFactory; void *lib = (void *)serverFactory;
void *addr; void *addr;
if (strcmp(game_name, "cstrike") == 0 if (strcmp(game_name, "cstrike") == 0