Skip to content

Commit

Permalink
Update loader for BM:S again.
Browse files Browse the repository at this point in the history
  • Loading branch information
psychonic committed Nov 8, 2016
1 parent ff9eac3 commit 8b3c2e8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions loader/loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve
}
else if (engineFactory("VEngineServer023", NULL) != NULL)
{
if (engineFactory("EngineTraceServer004", NULL) == NULL || serverFactory("ServerGameDLL010", NULL) != NULL)
if (engineFactory("EngineTraceServer004", NULL) == NULL)
{
goto TF2branch;
}
Expand All @@ -289,6 +289,12 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve
{
return MMBackend_Insurgency;
}

if (serverFactory("ServerGameDLL010", NULL) != NULL)
{
return MMBackend_BMS;
}

return MMBackend_CSGO;
}
else if (engineFactory("VEngineServer022", NULL) != NULL &&
Expand Down Expand Up @@ -386,11 +392,6 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve
{
return MMBackend_HL2DM;
}
else if (strcmp(game_name, "bms") == 0
|| (addr = mm_FindPattern(lib, "DT_BlackMesaPlayer", sizeof("DT_BlackMesaPlayer") - 1)))
{
return MMBackend_BMS;
}
else
{
return MMBackend_SDK2013;
Expand Down

0 comments on commit 8b3c2e8

Please sign in to comment.