Added engine support for Insurgency (bug 5951, r=asherkin).

This commit is contained in:
Nicholas Hastings
2013-10-13 14:16:08 -04:00
parent 24c623c2fa
commit e0746e1ab8
7 changed files with 27 additions and 11 deletions
+1 -1
View File
@@ -381,7 +381,7 @@ public:
FnChangeCallback_t GetChangeCallback( int slot ) const { return m_pParent->m_fnChangeCallbacks[ slot ]; }
// Retrieve value
#if SOURCE_ENGINE == SE_CSGO
#if SOURCE_ENGINE >= SE_INSURGENCY
virtual float GetFloat( void ) const;
virtual int GetInt( void ) const;
#else
+5
View File
@@ -235,6 +235,8 @@ static const char *get_source_engine_name()
return "portal2";
#elif SOURCE_ENGINE == SE_BLADE
return "blade";
#elif SOURCE_ENGINE == SE_INSURGENCY
return "insurgency";
#elif SOURCE_ENGINE == SE_CSGO
return "csgo";
#elif SOURCE_ENGINE == SE_DOTA
@@ -252,6 +254,7 @@ static bool symbols_are_hidden()
|| (SOURCE_ENGINE == SE_LEFT4DEAD) \
|| (SOURCE_ENGINE == SE_NUCLEARDAWN) \
|| (SOURCE_ENGINE == SE_LEFT4DEAD2) \
|| (SOURCE_ENGINE == SE_INSURGENCY) \
|| (SOURCE_ENGINE == SE_BLADE) \
|| (SOURCE_ENGINE == SE_CSGO) \
|| (SOURCE_ENGINE == SE_DOTA)
@@ -369,6 +372,8 @@ void do_global_plugin_loads()
#define GAMEFIX "2.portal2"
#elif SOURCE_ENGINE == SE_BLADE
#define GAMEFIX "2.blade"
#elif SOURCE_ENGINE == SE_INSURGENCY
#define GAMEFIX "2.insurgency"
#elif SOURCE_ENGINE == SE_CSGO
#define GAMEFIX "2.csgo"
#elif SOURCE_ENGINE == SE_DOTA