From ed6b5a49575e41988633f474c2632534727a9d7b Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Mon, 11 Aug 2014 18:02:05 -0400 Subject: [PATCH] Fix broken Alien Swarm engine detection (regression from 013c5490904). --- loader/loader.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/loader/loader.cpp b/loader/loader.cpp index 11e6720..5dac2e5 100644 --- a/loader/loader.cpp +++ b/loader/loader.cpp @@ -288,8 +288,13 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve else if (engineFactory("VEngineServer022", NULL) != NULL && engineFactory("VEngineCvar007", NULL) != NULL) { - if (serverFactory("ServerGameClients004", NULL)) + if (engineFactory("EngineTraceServer004", NULL) != NULL) { + if (engineFactory("XboxSystemInterface001", NULL) != NULL) + { + return MMBackend_AlienSwarm; + } + if (strcmp(game_name, "portal2") == 0) { return MMBackend_Portal2; @@ -297,11 +302,6 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve return MMBackend_Blade; } - - if (engineFactory("EngineTraceServer004", NULL) != NULL) - { - return MMBackend_AlienSwarm; - } else if (engineFactory("VPrecacheSystem001", NULL) != NULL) { if (engineFactory("ServerGameTags002", NULL) != NULL)