mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-06 18:08:31 +00:00
Fix detection on TF2-branch games after recent updates.
This commit is contained in:
parent
e14b479fbf
commit
c88af78b55
@ -280,6 +280,11 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve
|
|||||||
}
|
}
|
||||||
else if (engineFactory("VEngineServer023", NULL) != NULL)
|
else if (engineFactory("VEngineServer023", NULL) != NULL)
|
||||||
{
|
{
|
||||||
|
if (engineFactory("EngineTraceServer004", NULL) == NULL)
|
||||||
|
{
|
||||||
|
goto TF2branch;
|
||||||
|
}
|
||||||
|
|
||||||
if (engineFactory("IEngineSoundServer004", NULL) != NULL)
|
if (engineFactory("IEngineSoundServer004", NULL) != NULL)
|
||||||
{
|
{
|
||||||
return MMBackend_Insurgency;
|
return MMBackend_Insurgency;
|
||||||
@ -358,6 +363,7 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
TF2branch:
|
||||||
void *lib = (void *)serverFactory;
|
void *lib = (void *)serverFactory;
|
||||||
void *addr;
|
void *addr;
|
||||||
if (strcmp(game_name, "cstrike") == 0
|
if (strcmp(game_name, "cstrike") == 0
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user