Skip to content

Commit 1221f7f

Browse files
committed
Tweak game detection for MCV and Blade (fixes #200)
(cherry picked from commit 6c5847e)
1 parent e5de18e commit 1221f7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

loader/loader.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,12 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve
327327
return MMBackend_BMS;
328328
}
329329

330-
if (mm_FindPattern((void *)engineFactory, " Blade Symphony ", sizeof(" Blade Symphony ") - 1))
330+
if (serverFactory("VSERVERTOOLS003", NULL) != NULL)
331331
{
332332
return MMBackend_Blade;
333333
}
334334

335-
if (mm_FindPattern((void *)engineFactory, "Military Conflict: Vietnam", sizeof("Military Conflict: Vietnam") - 1))
335+
if (strcmp(game_name, "vietnam") == 0)
336336
{
337337
return MMBackend_MCV;
338338
}

0 commit comments

Comments
 (0)