Add support for Contagion (bug 6006).
authorNicholas Hastings <skamonkey@gmail.com>
Sun Mar 23 23:37:46 2014 -0400 (2014-03-23)
changeset 90957797db1d513
parent 908 6c6cacd2cfd0
child 910 09101853db35
Add support for Contagion (bug 6006).
AMBuildScript
core/ISmmPluginExt.h
core/metamod_console.cpp
core/provider/provider_ep2.cpp
loader/loader.cpp
loader/loader.h
     1.1 --- a/AMBuildScript	Fri Feb 28 20:53:55 2014 -0500
     1.2 +++ b/AMBuildScript	Sun Mar 23 23:37:46 2014 -0400
     1.3 @@ -30,16 +30,17 @@
     1.4    'tf2':  SDK('HL2SDKTF2', '2.tf2', '10', 'TF2', WinLinuxMac, 'tf2'),
     1.5    'l4d':  SDK('HL2SDKL4D', '2.l4d', '11', 'LEFT4DEAD', WinLinuxMac, 'l4d'),
     1.6    'nd': SDK('HL2SDKND', '2.nd', '12', 'NUCLEARDAWN', WinLinuxMac, 'nd'),
     1.7 -  'l4d2': SDK('HL2SDKL4D2', '2.l4d2', '13', 'LEFT4DEAD2', WinLinuxMac, 'l4d2'),
     1.8 +  'l4d2': SDK('HL2SDKL4D2', '2.l4d2', '14', 'LEFT4DEAD2', WinLinuxMac, 'l4d2'),
     1.9    'darkm':  SDK('HL2SDK-DARKM', '2.darkm', '2', 'DARKMESSIAH', WinOnly, 'darkm'),
    1.10 -  'swarm':  SDK('HL2SDK-SWARM', '2.swarm', '14', 'ALIENSWARM', WinOnly, 'swarm'),
    1.11 +  'swarm':  SDK('HL2SDK-SWARM', '2.swarm', '15', 'ALIENSWARM', WinOnly, 'swarm'),
    1.12    'bgt':  SDK('HL2SDK-BGT', '2.bgt', '4', 'BLOODYGOODTIME', WinOnly, 'bgt'),
    1.13    'eye':  SDK('HL2SDK-EYE', '2.eye', '5', 'EYE', WinOnly, 'eye'),
    1.14 -  'csgo': SDK('HL2SDKCSGO', '2.csgo', '18', 'CSGO', WinLinuxMac, 'csgo'),
    1.15 -  'dota': SDK('HL2SDKDOTA', '2.dota', '19', 'DOTA', WinLinuxMac, 'dota'),
    1.16 -  'portal2':  SDK('HL2SDKPORTAL2', '2.portal2', '15', 'PORTAL2', [], 'portal2'),
    1.17 -  'blade':  SDK('HL2SDKBLADE', '2.blade', '16', 'BLADE', WinLinux, 'blade'),
    1.18 -  'insurgency':  SDK('HL2SDKINSURGENCY', '2.insurgency', '17', 'INSURGENCY', WinLinuxMac, 'insurgency'),
    1.19 +  'csgo': SDK('HL2SDKCSGO', '2.csgo', '19', 'CSGO', WinLinuxMac, 'csgo'),
    1.20 +  'dota': SDK('HL2SDKDOTA', '2.dota', '20', 'DOTA', WinLinuxMac, 'dota'),
    1.21 +  'portal2':  SDK('HL2SDKPORTAL2', '2.portal2', '16', 'PORTAL2', [], 'portal2'),
    1.22 +  'blade':  SDK('HL2SDKBLADE', '2.blade', '17', 'BLADE', WinLinux, 'blade'),
    1.23 +  'insurgency':  SDK('HL2SDKINSURGENCY', '2.insurgency', '18', 'INSURGENCY', WinLinuxMac, 'insurgency'),
    1.24 +  'contagion':  SDK('HL2SDKCONTAGION', '2.contagion', '13', 'CONTAGION', WinOnly, 'contagion'),
    1.25  }
    1.26  
    1.27  def ResolveEnvPath(env, folder):
     2.1 --- a/core/ISmmPluginExt.h	Fri Feb 28 20:53:55 2014 -0500
     2.2 +++ b/core/ISmmPluginExt.h	Sun Mar 23 23:37:46 2014 -0400
     2.3 @@ -64,6 +64,7 @@
     2.4  #define SOURCE_ENGINE_SDK2013			19				/**< Source SDK 2013 */
     2.5  #define SOURCE_ENGINE_BLADE				20				/**< Blade Symphony */
     2.6  #define SOURCE_ENGINE_INSURGENCY		21				/**< Insurgency */
     2.7 +#define SOURCE_ENGINE_CONTAGION			22				/**< Contagion */
     2.8  
     2.9  #define METAMOD_PLAPI_VERSION			15				/**< Version of this header file */
    2.10  #define METAMOD_PLAPI_NAME				"ISmmPlugin"	/**< Name of the plugin interface */
     3.1 --- a/core/metamod_console.cpp	Fri Feb 28 20:53:55 2014 -0500
     3.2 +++ b/core/metamod_console.cpp	Sun Mar 23 23:37:46 2014 -0400
     3.3 @@ -120,6 +120,8 @@
     3.4  			CONMSG("  Engine: Left 4 Dead 2 (2009)\n");
     3.5  #elif SOURCE_ENGINE == SE_NUCLEARDAWN
     3.6  			CONMSG("  Engine: Nuclear Dawn (2011)\n");
     3.7 +#elif SOURCE_ENGINE == SE_CONTAGION
     3.8 +			CONMSG("  Engine: Contagion (2013)\n");
     3.9  #elif SOURCE_ENGINE == SE_LEFT4DEAD
    3.10  			CONMSG("  Engine: Left 4 Dead (2008)\n");
    3.11  #elif SOURCE_ENGINE == SE_ORANGEBOX
     4.1 --- a/core/provider/provider_ep2.cpp	Fri Feb 28 20:53:55 2014 -0500
     4.2 +++ b/core/provider/provider_ep2.cpp	Sun Mar 23 23:37:46 2014 -0400
     4.3 @@ -379,6 +379,8 @@
     4.4  	return SOURCE_ENGINE_LEFT4DEAD2;
     4.5  #elif SOURCE_ENGINE == SE_NUCLEARDAWN
     4.6  	return SOURCE_ENGINE_NUCLEARDAWN;
     4.7 +#elif SOURCE_ENGINE == SE_CONTAGION
     4.8 +	return SOURCE_ENGINE_CONTAGION;
     4.9  #elif SOURCE_ENGINE == SE_LEFT4DEAD
    4.10  	return SOURCE_ENGINE_LEFT4DEAD;
    4.11  #elif SOURCE_ENGINE == SE_ORANGEBOX
     5.1 --- a/loader/loader.cpp	Fri Feb 28 20:53:55 2014 -0500
     5.2 +++ b/loader/loader.cpp	Sun Mar 23 23:37:46 2014 -0400
     5.3 @@ -88,6 +88,7 @@
     5.4  	"2.sdk2013",
     5.5  	"2.blade",
     5.6  	"2.insurgency",
     5.7 +	"2.contagion",
     5.8  };
     5.9  
    5.10  #if defined _WIN32
    5.11 @@ -307,6 +308,10 @@
    5.12  			{
    5.13  				return MMBackend_NuclearDawn;
    5.14  			}
    5.15 +			else if (strcmp(game_name, "contagion") == 0)
    5.16 +			{
    5.17 +				return MMBackend_Contagion;
    5.18 +			}
    5.19  			else
    5.20  			{
    5.21  				return MMBackend_Left4Dead2;
     6.1 --- a/loader/loader.h	Fri Feb 28 20:53:55 2014 -0500
     6.2 +++ b/loader/loader.h	Sun Mar 23 23:37:46 2014 -0400
     6.3 @@ -100,6 +100,7 @@
     6.4  	MMBackend_SDK2013,
     6.5  	MMBackend_Blade,
     6.6  	MMBackend_Insurgency,
     6.7 +	MMBackend_Contagion,
     6.8  
     6.9  	MMBackend_UNKNOWN
    6.10  };