From d0f0b5586308ac8fe8a8d4e983089972b56564f9 Mon Sep 17 00:00:00 2001 From: matcool <26722564+matcool@users.noreply.github.com> Date: Wed, 15 Jan 2025 13:53:35 -0300 Subject: [PATCH] only setup logger after console has been opened --- loader/src/load.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/loader/src/load.cpp b/loader/src/load.cpp index 2bb68f52e..12d19a4e9 100644 --- a/loader/src/load.cpp +++ b/loader/src/load.cpp @@ -151,18 +151,16 @@ int geodeEntry(void* platformData) { } } - // Setup logger here so that internal mod is setup and we can read log level - // Logging before this point does store the log, and everything gets logged in this setup call - log::Logger::get()->setup(); - tryShowForwardCompat(); - // open console - if (!LoaderImpl::get()->isForwardCompatMode() && - Mod::get()->getSettingValue("show-platform-console")) { + if (Mod::get()->getSettingValue("show-platform-console")) { console::openIfClosed(); } + // Setup logger here so that internal mod is setup and we can read log level + // Logging before this point does store the log, and everything gets logged in this setup call + log::Logger::get()->setup(); + // set up loader, load mods, etc. log::info("Setting up loader"); {