From c06dc2dfedd3ef16accea3ffb434d1845dd91d29 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Thu, 10 Sep 2015 18:22:11 -0400 Subject: [PATCH] Fix detection on TF2-branch games after recent updates. --- loader/loader.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/loader/loader.cpp b/loader/loader.cpp index f2a696b..b80c287 100644 --- a/loader/loader.cpp +++ b/loader/loader.cpp @@ -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; @@ -358,6 +363,7 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve } else { + TF2branch: void *lib = (void *)serverFactory; void *addr; if (strcmp(game_name, "cstrike") == 0