mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2026-10-12 02:48:05 +08:00
Update ICommandLine
This commit is contained in:
1 parent
1227cc399c
commit
2121ebd20a
1 file changed
+15
-2
@@ -31,7 +31,7 @@ public:
|
||||
|
||||
// Gets at particular parameters
|
||||
virtual int ParmCount() const = 0;
|
||||
virtual int FindParm( CUtlStringToken param ) const = 0; // Returns 0 if not found.
|
||||
virtual int FindParm( CUtlStringToken param, int startIdx = -1 ) const = 0; // Returns 0 if not found.
|
||||
virtual const char* GetParm( int nIndex ) const = 0;
|
||||
|
||||
// Returns the argument after the one specified, or the default if not found
|
||||
@@ -47,7 +47,20 @@ public:
|
||||
// Returns true if there's atleast one parm available
|
||||
virtual bool HasParms( void ) const = 0;
|
||||
|
||||
virtual const char *GetUnkString() = 0;
|
||||
virtual const char *GetParmBuffer() = 0;
|
||||
|
||||
virtual const char *CheckParmUnrestricted( CUtlStringToken param, const char **ppszValue = 0 ) const = 0;
|
||||
virtual bool HasParmUnrestricted( CUtlStringToken param ) const = 0;
|
||||
|
||||
virtual int FindParmUnrestricted( CUtlStringToken param, int startIdx = -1 ) const = 0; // Returns 0 if not found.
|
||||
|
||||
// Returns the argument after the one specified, or the default if not found
|
||||
virtual const char *ParmValueUnrestricted( CUtlStringToken param, const char *pDefaultVal = 0 ) const = 0;
|
||||
virtual int ParmValueUnrestricted( CUtlStringToken param, int nDefaultVal ) const = 0;
|
||||
virtual float ParmValueUnrestricted( CUtlStringToken param, float flDefaultVal ) const = 0;
|
||||
virtual bool ParmValueUnrestricted( CUtlStringToken param, const char *pDefaultVal, CBufferString *bufOut ) = 0;
|
||||
|
||||
virtual ~ICommandLine() = 0;
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user