diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-09-26 01:24:13 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-09-26 01:24:13 +0100 |
commit | e98fc31a93dfc9a14db7bb5510d25df0226d6fd3 (patch) | |
tree | 0a14184023e46394ee7bc83846c4466f7e3f14c9 /NorthstarDedicatedTest/gameutils.h | |
parent | f083706eb05a22ec166d8e29b565f93785ad3cb0 (diff) | |
download | NorthstarLauncher-e98fc31a93dfc9a14db7bb5510d25df0226d6fd3.tar.gz NorthstarLauncher-e98fc31a93dfc9a14db7bb5510d25df0226d6fd3.zip |
add CommandLine() and Cbuf_Execute
Diffstat (limited to 'NorthstarDedicatedTest/gameutils.h')
-rw-r--r-- | NorthstarDedicatedTest/gameutils.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/gameutils.h b/NorthstarDedicatedTest/gameutils.h index b637dfa7..8db63fd7 100644 --- a/NorthstarDedicatedTest/gameutils.h +++ b/NorthstarDedicatedTest/gameutils.h @@ -55,6 +55,33 @@ extern Cbuf_GetCurrentPlayerType Cbuf_GetCurrentPlayer; typedef void(*Cbuf_AddTextType)(ECommandTarget_t eTarget, const char* text, cmd_source_t source); extern Cbuf_AddTextType Cbuf_AddText; +typedef void(*Cbuf_ExecuteType)(); +extern Cbuf_ExecuteType Cbuf_Execute; + +// commandline stuff +class CCommandLine +{ +public: + virtual void CreateCmdLine(const char* commandline) {} + virtual void CreateCmdLine(int argc, char** argv) {} + virtual const char* GetCmdLine(void) const {} + virtual const char* CheckParm(const char* psz, const char** ppszValue = 0) const {} + virtual bool HasParm(const char* psz) const {} + + virtual void RemoveParm() const {} + virtual void AppendParm(const char* pszParm, const char* pszValues) {} + + virtual int ParmCount() const {} + virtual int FindParm(const char* psz) const {} + virtual const char* GetParm(int nIndex) const {} + + virtual const char* ParmValue(const char* psz, const char* pDefaultVal = 0) const {} + virtual int ParmValue(const char* psz, int nDefaultVal) const {} + virtual float ParmValue(const char* psz, float flDefaultVal) const {} + virtual void SetParm(int nIndex, char const* pParm) {} + + virtual const char** GetParms() const {} +}; // hoststate stuff |