diff options
author | cat_or_not <41955154+catornot@users.noreply.github.com> | 2024-01-04 16:10:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-04 22:10:37 +0100 |
commit | f98513d71f4d39bd8286ccf816d2603fb09035e6 (patch) | |
tree | 32856a147ac18ff7ed44a2ce7a59867369278ac9 /primedev/core | |
parent | dcf6e1b1fd93d3afa7e0c5869c16d9760a3b4ece (diff) | |
download | NorthstarLauncher-f98513d71f4d39bd8286ccf816d2603fb09035e6.tar.gz NorthstarLauncher-f98513d71f4d39bd8286ccf816d2603fb09035e6.zip |
Add ban/kick concommand completion (#604)v1.22.0-rc1v1.22.0
Adds completion to ban and kick commands when typing them in in-game console.
Diffstat (limited to 'primedev/core')
-rw-r--r-- | primedev/core/convar/concommand.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/primedev/core/convar/concommand.cpp b/primedev/core/convar/concommand.cpp index 41f54c76..6e09ef91 100644 --- a/primedev/core/convar/concommand.cpp +++ b/primedev/core/convar/concommand.cpp @@ -145,6 +145,7 @@ void RegisterConCommand( ConCommand* newCommand = new ConCommand; ConCommandConstructor(newCommand, name, callback, helpString, flags, nullptr); newCommand->m_pCompletionCallback = completionCallback; + newCommand->m_nCallbackFlags |= 0x3; // seems to be correct?; derived from client.dll + 0x737267 } ON_DLL_LOAD("engine.dll", ConCommand, (CModule module)) |