1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-29 11:24:19 +01:00

Update ep2v detection (bug 4401, r=dvander)

This commit is contained in:
Fyren 2010-05-12 22:56:31 -07:00
parent 1130977c9d
commit 96ef34139b

View File

@ -263,7 +263,15 @@ mm_DetermineBackend(QueryValveInterface engineFactory, const char *game_name)
if (engineFactory("VEngineCvar004", NULL) != NULL &&
engineFactory("VModelInfoServer002", NULL) != NULL)
{
if (strcmp(game_name, "tf") == 0 || strcmp(game_name, "dod") == 0)
char lib_path[PLATFORM_MAX_PATH];
/* These would have failed already if they were going to? */
mm_ResolvePath(TIER0_NAME, lib_path, sizeof(lib_path));
void *lib = mm_LoadLibrary(lib_path, NULL, 0);
void *tier0_ctime = mm_GetLibAddress(lib, "Plat_ctime");
mm_UnloadLibrary(lib);
if (tier0_ctime != NULL)
{
return MMBackend_Episode2Valve;
}