diff options
Diffstat (limited to 'NorthstarDedicatedTest/sourceconsole.cpp')
-rw-r--r-- | NorthstarDedicatedTest/sourceconsole.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/sourceconsole.cpp b/NorthstarDedicatedTest/sourceconsole.cpp new file mode 100644 index 00000000..c862356e --- /dev/null +++ b/NorthstarDedicatedTest/sourceconsole.cpp @@ -0,0 +1,14 @@ +#include "pch.h" +#include "sourceconsole.h" +#include "sourceinterface.h" + +SourceInterface<CGameConsole>* g_SourceGameConsole; + +void InitialiseSourceConsole(HMODULE baseAddress) +{ + SourceInterface<CGameConsole> console = SourceInterface<CGameConsole>("client.dll", "CGameConsole"); + console->Initialize(); + console->Activate(); + + g_SourceGameConsole = &console; +}
\ No newline at end of file |