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
(cherry picked from commit 6c5847e)
  • Loading branch information
psychonic committed Feb 22, 2025
1 parent e5de18e commit 1221f7f
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 @@ -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;
}
Expand Down

0 comments on commit 1221f7f

Please sign in to comment.