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)

This commit is contained in:
Nicholas Hastings 2025-02-16 13:59:13 -05:00
parent 8d04578706
commit 6c5847e393

View File

@ -291,12 +291,12 @@ mm_DetermineBackendS1(QueryValveInterface engineFactory, QueryValveInterface ser
return MMBackend_BMS; return MMBackend_BMS;
} }
if (mm_FindPattern((void *)engineFactory, " Blade Symphony ", sizeof(" Blade Symphony ") - 1)) if (serverFactory("VSERVERTOOLS003", NULL) != NULL)
{ {
return MMBackend_Blade; 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; return MMBackend_MCV;
} }