mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-06 18:08:31 +00:00
Update ep2v detection (bug 4401, r=dvander)
This commit is contained in:
parent
1130977c9d
commit
96ef34139b
@ -263,7 +263,15 @@ mm_DetermineBackend(QueryValveInterface engineFactory, const char *game_name)
|
|||||||
if (engineFactory("VEngineCvar004", NULL) != NULL &&
|
if (engineFactory("VEngineCvar004", NULL) != NULL &&
|
||||||
engineFactory("VModelInfoServer002", 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;
|
return MMBackend_Episode2Valve;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user