diff --git a/AMBuildScript b/AMBuildScript index eaae52d..607e4d2 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -30,16 +30,17 @@ PossibleSDKs = { '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 --git a/core/ISmmPluginExt.h b/core/ISmmPluginExt.h index 720ee93..7d17c4a 100644 --- a/core/ISmmPluginExt.h +++ b/core/ISmmPluginExt.h @@ -64,6 +64,7 @@ enum #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 --git a/core/metamod_console.cpp b/core/metamod_console.cpp index b52b96b..bdedd8f 100644 --- a/core/metamod_console.cpp +++ b/core/metamod_console.cpp @@ -120,6 +120,8 @@ bool Command_Meta(IMetamodSourceCommandInfo *info) 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 --git a/core/provider/provider_ep2.cpp b/core/provider/provider_ep2.cpp index 373be3f..61fe84e 100644 --- a/core/provider/provider_ep2.cpp +++ b/core/provider/provider_ep2.cpp @@ -379,6 +379,8 @@ int BaseProvider::DetermineSourceEngine(const char *game) 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 --git a/loader/loader.cpp b/loader/loader.cpp index 8850a7f..d46f63e 100644 --- a/loader/loader.cpp +++ b/loader/loader.cpp @@ -88,6 +88,7 @@ static const char *backend_names[] = "2.sdk2013", "2.blade", "2.insurgency", + "2.contagion", }; #if defined _WIN32 @@ -307,6 +308,10 @@ mm_DetermineBackend(QueryValveInterface engineFactory, QueryValveInterface serve { return MMBackend_NuclearDawn; } + else if (strcmp(game_name, "contagion") == 0) + { + return MMBackend_Contagion; + } else { return MMBackend_Left4Dead2; diff --git a/loader/loader.h b/loader/loader.h index a39bd23..a96c88c 100644 --- a/loader/loader.h +++ b/loader/loader.h @@ -100,6 +100,7 @@ enum MetamodBackend MMBackend_SDK2013, MMBackend_Blade, MMBackend_Insurgency, + MMBackend_Contagion, MMBackend_UNKNOWN };