diff options
| author | oy <Tom_Adams@web.de> | 2010-06-18 20:32:52 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-06-18 20:32:52 +0200 |
| commit | ea64b0d7b361308d3b3737ecbac724856bfddda4 (patch) | |
| tree | dab4a10f455ef2916969fe2d8e17fa690fa543e8 /src/engine/shared/console.h | |
| parent | a5bc567e84902d55fe1f2eec9df621d984a0d808 (diff) | |
| download | zcatch-ea64b0d7b361308d3b3737ecbac724856bfddda4.tar.gz zcatch-ea64b0d7b361308d3b3737ecbac724856bfddda4.zip | |
made the console use the flagmask when looking for command (FindCommand) and removed double "No such command" console message
Diffstat (limited to 'src/engine/shared/console.h')
| -rw-r--r-- | src/engine/shared/console.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/engine/shared/console.h b/src/engine/shared/console.h index 93d23547..9064fa86 100644 --- a/src/engine/shared/console.h +++ b/src/engine/shared/console.h @@ -24,6 +24,7 @@ class CConsole : public IConsole void *m_pUserData; }; + int m_FlagMask; CCommand *m_pFirstCommand; class CExecFile @@ -74,12 +75,12 @@ class CConsole : public IConsole int ParseStart(CResult *pResult, const char *pString, int Length); int ParseArgs(CResult *pResult, const char *pFormat); - CCommand *FindCommand(const char *pName); + CCommand *FindCommand(const char *pName, int FlagMask); public: - CConsole(); + CConsole(int FlagMask); - virtual CCommandInfo *GetCommandInfo(const char *pName); + virtual CCommandInfo *GetCommandInfo(const char *pName, int FlagMask); virtual void PossibleCommands(const char *pStr, int FlagMask, FPossibleCallback pfnCallback, void *pUser) ; virtual void ParseArguments(int NumArgs, const char **ppArguments); |