diff options
Diffstat (limited to 'NorthstarDedicatedTest/sourceconsole.cpp')
-rw-r--r-- | NorthstarDedicatedTest/sourceconsole.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/sourceconsole.cpp b/NorthstarDedicatedTest/sourceconsole.cpp index d5c7e347..64c6565c 100644 --- a/NorthstarDedicatedTest/sourceconsole.cpp +++ b/NorthstarDedicatedTest/sourceconsole.cpp @@ -3,6 +3,7 @@ #include "sourceinterface.h" #include "concommand.h" #include "hookutils.h" +#include "dedicated.h" SourceInterface<CGameConsole>* g_SourceGameConsole; @@ -52,6 +53,9 @@ void InitialiseConsoleOnInterfaceCreation() void InitialiseSourceConsole(HMODULE baseAddress) { + if (IsDedicated()) + return; + g_SourceGameConsole = new SourceInterface<CGameConsole>("client.dll", "GameConsole004"); RegisterConCommand("toggleconsole", ConCommand_toggleconsole, "toggles the console", FCVAR_NONE); } |