aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/sourceconsole.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-07-20 02:14:17 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-07-20 02:14:17 +0100
commit958d03d2817e312c8eb70234f1c65e4bcbded716 (patch)
treee7fd88a8e6a5ececdd46abf9b95c7a2e82eb2b98 /NorthstarDedicatedTest/sourceconsole.cpp
parenta71d52ffd1531a4a03cb4c87dc56ace4f5cb33c1 (diff)
downloadNorthstarLauncher-958d03d2817e312c8eb70234f1c65e4bcbded716.tar.gz
NorthstarLauncher-958d03d2817e312c8eb70234f1c65e4bcbded716.zip
add basic mod support with support for mod convars
Diffstat (limited to 'NorthstarDedicatedTest/sourceconsole.cpp')
-rw-r--r--NorthstarDedicatedTest/sourceconsole.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/sourceconsole.cpp b/NorthstarDedicatedTest/sourceconsole.cpp
index a65c62d5..88d038df 100644
--- a/NorthstarDedicatedTest/sourceconsole.cpp
+++ b/NorthstarDedicatedTest/sourceconsole.cpp
@@ -28,6 +28,8 @@ void OnCommandSubmittedHook(CConsoleDialog* consoleDialog, const char* pCommand)
consoleDialog->m_pConsolePanel->Print("\n");
// todo: call the help command in the future
+
+ onCommandSubmittedOriginal(consoleDialog, pCommand);
}
// called from sourceinterface.cpp in client createinterface hooks, on GameClientExports001
@@ -51,6 +53,9 @@ void InitialiseSourceConsole(HMODULE baseAddress)
RegisterConCommand("toggleconsole", ConCommand_toggleconsole, "toggles the console", FCVAR_NONE);
}
+
+// logging stuff
+
SourceConsoleSink::SourceConsoleSink()
{
logColours.emplace(spdlog::level::trace, SourceColor(0, 255, 255, 255));