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/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/console.h')
| -rw-r--r-- | src/engine/console.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/console.h b/src/engine/console.h index 74d789e9..34fa4272 100644 --- a/src/engine/console.h +++ b/src/engine/console.h @@ -37,7 +37,7 @@ public: typedef void (*FCommandCallback)(IResult *pResult, void *pUserData); typedef void (*FChainCommandCallback)(IResult *pResult, void *pUserData, FCommandCallback pfnCallback, void *pCallbackUserData); - virtual CCommandInfo *GetCommandInfo(const char *pName) = 0; + virtual CCommandInfo *GetCommandInfo(const char *pName, int FlagMask) = 0; virtual void PossibleCommands(const char *pStr, int FlagMask, FPossibleCallback pfnCallback, void *pUser) = 0; virtual void ParseArguments(int NumArgs, const char **ppArguments) = 0; @@ -53,6 +53,6 @@ public: virtual void Print(const char *pStr) = 0; }; -extern IConsole *CreateConsole(); +extern IConsole *CreateConsole(int FlagMask); #endif // FILE_ENGINE_CONSOLE_H |