From 70122da21cc12c69865c08ee743a6d6c9aeb542e Mon Sep 17 00:00:00 2001 From: psychonic Date: Fri, 17 Dec 2010 22:20:10 -0500 Subject: [PATCH] Adjusted MM:S loader for new ep2v engine iface change (bug 4752, r=DS). --- loader/loader.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/loader/loader.cpp b/loader/loader.cpp index f756389..0912ec7 100644 --- a/loader/loader.cpp +++ b/loader/loader.cpp @@ -281,22 +281,16 @@ mm_DetermineBackend(QueryValveInterface engineFactory, const char *game_name) else if (engineFactory("VEngineServer021", NULL) != NULL) { /* Check for OB */ - if (engineFactory("VEngineCvar004", NULL) != NULL && - engineFactory("VModelInfoServer002", NULL) != NULL) + if (engineFactory("VEngineCvar004", NULL) != NULL) { - char lib_path[PLATFORM_MAX_PATH]; - - /* These would have failed already if they were going to? */ - mm_ResolvePath(STEAM_API_NAME, lib_path, sizeof(lib_path)); - void *lib = mm_LoadLibrary(lib_path, NULL, 0); - void *steamapi_breakpad = mm_GetLibAddress(lib, "SteamAPI_SetBreakpadAppID"); - mm_UnloadLibrary(lib); - - if (steamapi_breakpad != NULL) + if (engineFactory("VModelInfoServer002", NULL) != NULL) + { + return MMBackend_Episode2; + } + else if (engineFactory("VModelInfoServer003", NULL) != NULL) { return MMBackend_Episode2Valve; } - return MMBackend_Episode2; } /* Check for Episode One/Old Engine */ else if (engineFactory("VModelInfoServer001", NULL) != NULL &&