Skip to content

Commit

Permalink
only setup logger after console has been opened
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool committed Jan 15, 2025
1 parent 8ef7ede commit d0f0b55
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions loader/src/load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool>("show-platform-console")) {
if (Mod::get()->getSettingValue<bool>("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");
{
Expand Down

0 comments on commit d0f0b55

Please sign in to comment.