Skip to content

Commit

Permalink
Fix detection on TF2-branch games after recent updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
psychonic committed Sep 10, 2015
1 parent e14b479 commit c88af78
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions loader/loader.cpp
Expand Up @@ -280,6 +280,11 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve
}
else if (engineFactory("VEngineServer023", NULL) != NULL)
{
if (engineFactory("EngineTraceServer004", NULL) == NULL)
{
goto TF2branch;
}

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

0 comments on commit c88af78

Please sign in to comment.