diff options
author | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2022-09-03 01:08:39 +0100 |
---|---|---|
committer | BobTheBob9 <for.oliver.kirkham@gmail.com> | 2022-09-03 01:08:39 +0100 |
commit | 1b891ff2f166a5d00270c1cd00d2606d8cfd114d (patch) | |
tree | 0608bfc71f17d2c79bdfe68e779a44c22f24ec29 /NorthstarDLL/logging.cpp | |
parent | 2f2b497aca23239406ce3f8d94f29f10d205a68b (diff) | |
download | NorthstarLauncher-1b891ff2f166a5d00270c1cd00d2606d8cfd114d.tar.gz NorthstarLauncher-1b891ff2f166a5d00270c1cd00d2606d8cfd114d.zip |
various formatting changes and fixes
Diffstat (limited to 'NorthstarDLL/logging.cpp')
-rw-r--r-- | NorthstarDLL/logging.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/NorthstarDLL/logging.cpp b/NorthstarDLL/logging.cpp index e82c2131..5bd5ae40 100644 --- a/NorthstarDLL/logging.cpp +++ b/NorthstarDLL/logging.cpp @@ -4,6 +4,7 @@ #include "concommand.h" #include "nsprefix.h" #include "bitbuf.h" +#include "tier0.h" #include "spdlog/sinks/basic_file_sink.h" #include <iomanip> @@ -225,11 +226,12 @@ void InitialiseLogging() AllocConsole(); // Bind stdout to receive console output. - FILE* fp; - freopen_s(&fp, "CONOUT$", "w", stdout); - //_dup2(_fileno(stdout), _fileno(stderr)); - - spdlog::default_logger()->set_pattern("[%H:%M:%S] [%l] %v"); + // these two lines are responsible for stuff to not show up in the console sometimes, from talking about it on discord + // apparently they were meant to make logging work when using -northstar, however from testing it seems that it doesnt + // work regardless of these two lines + // freopen("CONOUT$", "w", stdout); + // freopen("CONOUT$", "w", stderr); + spdlog::default_logger()->set_pattern("[%H:%M:%S] [%^%l%$] %v"); } ON_DLL_LOAD_CLIENT_RELIESON("engine.dll", EngineSpewFuncHooks, ConVar, (CModule module)) |