Added engine support for Insurgency (bug 5951, r=asherkin).
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user