# HG changeset patch # User Nicholas Hastings # Date 1395632266 14400 # Node ID 57797db1d513359b8ee2f2f961320271a126b3f8 # Parent 6c6cacd2cfd0d7df904474533827723779595554 Add support for Contagion (bug 6006). diff -r 6c6cacd2cfd0 -r 57797db1d513 AMBuildScript --- a/AMBuildScript Fri Feb 28 20:53:55 2014 -0500 +++ b/AMBuildScript Sun Mar 23 23:37:46 2014 -0400 @@ -30,16 +30,17 @@ 'tf2': SDK('HL2SDKTF2', '2.tf2', '10', 'TF2', WinLinuxMac, 'tf2'), 'l4d': SDK('HL2SDKL4D', '2.l4d', '11', 'LEFT4DEAD', WinLinuxMac, 'l4d'), 'nd': SDK('HL2SDKND', '2.nd', '12', 'NUCLEARDAWN', WinLinuxMac, 'nd'), - 'l4d2': SDK('HL2SDKL4D2', '2.l4d2', '13', 'LEFT4DEAD2', WinLinuxMac, 'l4d2'), + 'l4d2': SDK('HL2SDKL4D2', '2.l4d2', '14', 'LEFT4DEAD2', WinLinuxMac, 'l4d2'), 'darkm': SDK('HL2SDK-DARKM', '2.darkm', '2', 'DARKMESSIAH', WinOnly, 'darkm'), - 'swarm': SDK('HL2SDK-SWARM', '2.swarm', '14', 'ALIENSWARM', WinOnly, 'swarm'), + 'swarm': SDK('HL2SDK-SWARM', '2.swarm', '15', 'ALIENSWARM', WinOnly, 'swarm'), 'bgt': SDK('HL2SDK-BGT', '2.bgt', '4', 'BLOODYGOODTIME', WinOnly, 'bgt'), 'eye': SDK('HL2SDK-EYE', '2.eye', '5', 'EYE', WinOnly, 'eye'), - 'csgo': SDK('HL2SDKCSGO', '2.csgo', '18', 'CSGO', WinLinuxMac, 'csgo'), - 'dota': SDK('HL2SDKDOTA', '2.dota', '19', 'DOTA', WinLinuxMac, 'dota'), - 'portal2': SDK('HL2SDKPORTAL2', '2.portal2', '15', 'PORTAL2', [], 'portal2'), - 'blade': SDK('HL2SDKBLADE', '2.blade', '16', 'BLADE', WinLinux, 'blade'), - 'insurgency': SDK('HL2SDKINSURGENCY', '2.insurgency', '17', 'INSURGENCY', WinLinuxMac, 'insurgency'), + 'csgo': SDK('HL2SDKCSGO', '2.csgo', '19', 'CSGO', WinLinuxMac, 'csgo'), + 'dota': SDK('HL2SDKDOTA', '2.dota', '20', 'DOTA', WinLinuxMac, 'dota'), + 'portal2': SDK('HL2SDKPORTAL2', '2.portal2', '16', 'PORTAL2', [], 'portal2'), + 'blade': SDK('HL2SDKBLADE', '2.blade', '17', 'BLADE', WinLinux, 'blade'), + 'insurgency': SDK('HL2SDKINSURGENCY', '2.insurgency', '18', 'INSURGENCY', WinLinuxMac, 'insurgency'), + 'contagion': SDK('HL2SDKCONTAGION', '2.contagion', '13', 'CONTAGION', WinOnly, 'contagion'), } def ResolveEnvPath(env, folder): diff -r 6c6cacd2cfd0 -r 57797db1d513 core/ISmmPluginExt.h --- a/core/ISmmPluginExt.h Fri Feb 28 20:53:55 2014 -0500 +++ b/core/ISmmPluginExt.h Sun Mar 23 23:37:46 2014 -0400 @@ -64,6 +64,7 @@ #define SOURCE_ENGINE_SDK2013 19 /**< Source SDK 2013 */ #define SOURCE_ENGINE_BLADE 20 /**< Blade Symphony */ #define SOURCE_ENGINE_INSURGENCY 21 /**< Insurgency */ +#define SOURCE_ENGINE_CONTAGION 22 /**< Contagion */ #define METAMOD_PLAPI_VERSION 15 /**< Version of this header file */ #define METAMOD_PLAPI_NAME "ISmmPlugin" /**< Name of the plugin interface */ diff -r 6c6cacd2cfd0 -r 57797db1d513 core/metamod_console.cpp --- a/core/metamod_console.cpp Fri Feb 28 20:53:55 2014 -0500 +++ b/core/metamod_console.cpp Sun Mar 23 23:37:46 2014 -0400 @@ -120,6 +120,8 @@ CONMSG(" Engine: Left 4 Dead 2 (2009)\n"); #elif SOURCE_ENGINE == SE_NUCLEARDAWN CONMSG(" Engine: Nuclear Dawn (2011)\n"); +#elif SOURCE_ENGINE == SE_CONTAGION + CONMSG(" Engine: Contagion (2013)\n"); #elif SOURCE_ENGINE == SE_LEFT4DEAD CONMSG(" Engine: Left 4 Dead (2008)\n"); #elif SOURCE_ENGINE == SE_ORANGEBOX diff -r 6c6cacd2cfd0 -r 57797db1d513 core/provider/provider_ep2.cpp --- a/core/provider/provider_ep2.cpp Fri Feb 28 20:53:55 2014 -0500 +++ b/core/provider/provider_ep2.cpp Sun Mar 23 23:37:46 2014 -0400 @@ -379,6 +379,8 @@ return SOURCE_ENGINE_LEFT4DEAD2; #elif SOURCE_ENGINE == SE_NUCLEARDAWN return SOURCE_ENGINE_NUCLEARDAWN; +#elif SOURCE_ENGINE == SE_CONTAGION + return SOURCE_ENGINE_CONTAGION; #elif SOURCE_ENGINE == SE_LEFT4DEAD return SOURCE_ENGINE_LEFT4DEAD; #elif SOURCE_ENGINE == SE_ORANGEBOX diff -r 6c6cacd2cfd0 -r 57797db1d513 loader/loader.cpp --- a/loader/loader.cpp Fri Feb 28 20:53:55 2014 -0500 +++ b/loader/loader.cpp Sun Mar 23 23:37:46 2014 -0400 @@ -88,6 +88,7 @@ "2.sdk2013", "2.blade", "2.insurgency", + "2.contagion", }; #if defined _WIN32 @@ -307,6 +308,10 @@ { return MMBackend_NuclearDawn; } + else if (strcmp(game_name, "contagion") == 0) + { + return MMBackend_Contagion; + } else { return MMBackend_Left4Dead2; diff -r 6c6cacd2cfd0 -r 57797db1d513 loader/loader.h --- a/loader/loader.h Fri Feb 28 20:53:55 2014 -0500 +++ b/loader/loader.h Sun Mar 23 23:37:46 2014 -0400 @@ -100,6 +100,7 @@ MMBackend_SDK2013, MMBackend_Blade, MMBackend_Insurgency, + MMBackend_Contagion, MMBackend_UNKNOWN };