1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-02-26 19:54:14 +01:00

Tweak game detection for MCV and Blade (fixes #200)

(cherry picked from commit 6c5847e393e3422405df315b9b7477b489b0c456)
This commit is contained in:
Nicholas Hastings 2025-02-16 13:59:13 -05:00
parent e5de18eadd
commit 1221f7f92e

View File

@ -327,12 +327,12 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve
return MMBackend_BMS;
}
if (mm_FindPattern((void *)engineFactory, " Blade Symphony ", sizeof(" Blade Symphony ") - 1))
if (serverFactory("VSERVERTOOLS003", NULL) != NULL)
{
return MMBackend_Blade;
}
if (mm_FindPattern((void *)engineFactory, "Military Conflict: Vietnam", sizeof("Military Conflict: Vietnam") - 1))
if (strcmp(game_name, "vietnam") == 0)
{
return MMBackend_MCV;
}