From 8b3c2e8ca5208fd67d8082362307e00e1a533fe3 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Mon, 7 Nov 2016 21:02:30 -0500 Subject: [PATCH] Update loader for BM:S again. --- loader/loader.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/loader/loader.cpp b/loader/loader.cpp index cf3fa75..d8e57ea 100644 --- a/loader/loader.cpp +++ b/loader/loader.cpp @@ -280,7 +280,7 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve } else if (engineFactory("VEngineServer023", NULL) != NULL) { - if (engineFactory("EngineTraceServer004", NULL) == NULL || serverFactory("ServerGameDLL010", NULL) != NULL) + if (engineFactory("EngineTraceServer004", NULL) == NULL) { goto TF2branch; } @@ -289,6 +289,12 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve { return MMBackend_Insurgency; } + + if (serverFactory("ServerGameDLL010", NULL) != NULL) + { + return MMBackend_BMS; + } + return MMBackend_CSGO; } else if (engineFactory("VEngineServer022", NULL) != NULL && @@ -386,11 +392,6 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve { return MMBackend_HL2DM; } - else if (strcmp(game_name, "bms") == 0 - || (addr = mm_FindPattern(lib, "DT_BlackMesaPlayer", sizeof("DT_BlackMesaPlayer") - 1))) - { - return MMBackend_BMS; - } else { return MMBackend_SDK2013;