mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
the parameter check for '-novid' has been removed from S2 onwards, but later added back in. Our S3 build doesn't have it as well. This commit adds it back in and allows user to launch the game without the startup video's by adding '-novid' to the launch arguments. ('-dev' also works, but this enables developer and sv_cheats..).
31 lines
1.1 KiB
C++
31 lines
1.1 KiB
C++
#ifndef ICOMMANDLINE_H
|
|
#define ICOMMANDLINE_H
|
|
|
|
abstract_class ICommandLine
|
|
{
|
|
public:
|
|
virtual void CreateCmdLine(const char* pszCommandline) = 0;
|
|
virtual void CreateCmdLine(int argc, char** argv) = 0;
|
|
virtual void CreatePool(void* pMem) = 0;
|
|
|
|
virtual const char* GetCmdLine(void) const = 0;
|
|
|
|
virtual const char* CheckParm(const char* pszParm, const char** ppszValue = NULL) const = 0;
|
|
virtual void RemoveParm(const char* pszParm) = 0;
|
|
virtual void AppendParm(const char* pszParm, const char* pszValues) = 0;
|
|
|
|
virtual const char* ParmValue(const char* pszParm, const char* pDefaultVal = NULL) const = 0;
|
|
virtual int ParmValue(const char* pszParm, int nDefaultVal) const = 0;
|
|
virtual float ParmValue(const char* pszParm, float flDefaultVal) const = 0;
|
|
|
|
virtual int ParmCount(void) const = 0;
|
|
virtual int FindParm(const char* pszParm) const = 0;
|
|
virtual const char* GetParm(int nIndex) const = 0;
|
|
virtual bool GuardLocked(void) const = 0; // True = mutex locked.
|
|
virtual void SetParm(int nIndex, char const* pParm) = 0;
|
|
|
|
virtual void CleanUpParms(void) = 0;
|
|
};
|
|
|
|
#endif // ICOMMANDLINE_H
|