Skip to content

Commit

Permalink
Tweak game detection for MCV and Blade (fixes #200)
Browse files Browse the repository at this point in the history
  • Loading branch information
psychonic committed Feb 16, 2025
1 parent 8d04578 commit 6c5847e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loader/loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,12 @@ mm_DetermineBackendS1(QueryValveInterface engineFactory, QueryValveInterface ser
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;
}
Expand Down

0 comments on commit 6c5847e

Please sign in to comment.