Added better cross-engine support for finding Valve commandline (bug 5216, r=asherkin).

This commit is contained in:
Nicholas Hastings
2012-02-25 15:09:56 -05:00
parent 545868da38
commit 4669c320f6
4 changed files with 97 additions and 3 deletions
+9 -1
View File
@@ -40,12 +40,13 @@
*/
#define SMINTERFACE_GAMEHELPERS_NAME "IGameHelpers"
#define SMINTERFACE_GAMEHELPERS_VERSION 7
#define SMINTERFACE_GAMEHELPERS_VERSION 8
class CBaseEntity;
class CBaseHandle;
class SendProp;
class ServerClass;
class ICommandLine;
struct edict_t;
struct datamap_t;
struct typedescription_t;
@@ -284,6 +285,13 @@ namespace SourceMod
* @return True on success, false on failure.
*/
virtual bool HintTextMsg(int client, const char *msg) =0;
/**
* @brief Retrieves the Valve command line pointer.
*
* @return ICommandLine ptr or NULL if not found.
*/
virtual ICommandLine *GetValveCommandLine() =0;
};
}