Skip to content

Commit 6c5847e

Browse files
committed
Tweak game detection for MCV and Blade (fixes #200)
1 parent 8d04578 commit 6c5847e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

loader/loader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,12 @@ mm_DetermineBackendS1(QueryValveInterface engineFactory, QueryValveInterface ser
291291
return MMBackend_BMS;
292292
}
293293

294-
if (mm_FindPattern((void *)engineFactory, " Blade Symphony ", sizeof(" Blade Symphony ") - 1))
294+
if (serverFactory("VSERVERTOOLS003", NULL) != NULL)
295295
{
296296
return MMBackend_Blade;
297297
}
298298

299-
if (mm_FindPattern((void *)engineFactory, "Military Conflict: Vietnam", sizeof("Military Conflict: Vietnam") - 1))
299+
if (strcmp(game_name, "vietnam") == 0)
300300
{
301301
return MMBackend_MCV;
302302
}

0 commit comments

Comments
 (0)