Skip to content
Permalink
Browse files

Changes required for upcoming Blade Symphony update

  • Loading branch information
asherkin committed Mar 10, 2020
1 parent 98d0c0f commit 1b449d20b858cf863d462f15541b0077aa844638
Showing with 11 additions and 6 deletions.
  1. +3 −3 AMBuildScript
  2. +2 −2 core/provider/provider_ep2.cpp
  3. +6 −1 loader/loader.cpp
@@ -56,7 +56,7 @@ PossibleSDKs = {
'csgo': SDK('HL2SDKCSGO', '2.csgo', '21', 'CSGO', CSGO, 'csgo'),
'dota': SDK('HL2SDKDOTA', '2.dota', '22', 'DOTA', [], 'dota'),
'portal2': SDK('HL2SDKPORTAL2', '2.portal2', '17', 'PORTAL2', [], 'portal2'),
'blade': SDK('HL2SDKBLADE', '2.blade', '18', 'BLADE', WinLinux, 'blade'),
'blade': SDK('HL2SDKBLADE', '2.blade', '18', 'BLADE', WinOnly, 'blade'),
'insurgency': SDK('HL2SDKINSURGENCY', '2.insurgency', '19', 'INSURGENCY', WinLinuxMac, 'insurgency'),
'doi': SDK('HL2SDKDOI', '2.doi', '20', 'DOI', WinLinuxMac, 'doi'),
'contagion': SDK('HL2SDKCONTAGION', '2.contagion', '14', 'CONTAGION', WinOnly, 'contagion'),
@@ -356,7 +356,7 @@ class MMSConfig(object):
if builder.target.platform in ['linux', 'mac']:
compiler.defines += ['NO_HOOK_MALLOC', 'NO_MALLOC_OVERRIDE']

if sdk.name == 'csgo' and builder.target.platform == 'linux':
if sdk.name in ['csgo', 'blade'] and builder.target.platform == 'linux':
compiler.linkflags += ['-lstdc++']


@@ -466,7 +466,7 @@ class MMSConfig(object):
compiler.linkflags[0:0] = ['-lm']
if sdk.name in ['css', 'hl2dm', 'dods', 'tf2', 'sdk2013', 'bms', 'nucleardawn', 'l4d2', 'insurgency', 'doi']:
dynamic_libs = ['libtier0_srv.so', 'libvstdlib_srv.so']
elif arch == 'x64' and sdk.name == 'csgo':
elif arch == 'x64' and sdk.name in ['csgo', 'blade']:
dynamic_libs = ['libtier0_client.so', 'libvstdlib_client.so']
elif sdk.name in ['l4d', 'blade', 'insurgency', 'doi', 'csgo', 'dota']:
dynamic_libs = ['libtier0.so', 'libvstdlib.so']
@@ -441,7 +441,7 @@ void BaseProvider::UnregisterConCommandBase(ConCommandBase *pCommand)

int BaseProvider::GetUserMessageCount()
{
#if SOURCE_ENGINE == SE_CSGO || SOURCE_ENGINE == SE_DOTA
#if SOURCE_ENGINE == SE_CSGO || SOURCE_ENGINE == SE_DOTA || SOURCE_ENGINE == SE_BLADE
return -1;
#else
return (int)usermsgs_list.size();
@@ -757,7 +757,7 @@ void ClientCommand(edict_t *client)
RETURN_META(MRES_IGNORED);
}

#if SOURCE_ENGINE == SE_CSGO || SOURCE_ENGINE == SE_DOTA
#if SOURCE_ENGINE == SE_CSGO || SOURCE_ENGINE == SE_DOTA || SOURCE_ENGINE == SE_BLADE

void CacheUserMessages()
{
@@ -323,6 +323,11 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve
{
return MMBackend_BMS;
}

if (mm_FindPattern(engineFactory, " Blade Symphony ", sizeof(" Blade Symphony ") - 1))
{
return MMBackend_Blade;
}

return MMBackend_CSGO;
}
@@ -344,7 +349,7 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve
return MMBackend_Portal2;
}

return MMBackend_Blade;
return MMBackend_Blade; // Old Blade
}
else if (engineFactory("VPrecacheSystem001", NULL) != NULL)
{

0 comments on commit 1b449d2

Please sign in to comment.
You can’t perform that action at this time.