1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-28 10:24:20 +01:00

Update loader for BM:S again.

This commit is contained in:
Nicholas Hastings 2016-11-07 21:02:30 -05:00
parent 937b4016ff
commit 0509616baf

View File

@ -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;
}
@ -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 &&
@ -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;