diff --git a/src/SKSE/API.cpp b/src/SKSE/API.cpp index ff5506187..4202ba800 100644 --- a/src/SKSE/API.cpp +++ b/src/SKSE/API.cpp @@ -74,16 +74,12 @@ namespace SKSE } } - void Init(const LoadInterface* a_intfc, const bool a_log) noexcept + void Init(const LoadInterface* a_intfc, [[maybe_unused]] const bool a_log) noexcept { if (!a_intfc) { stl::report_and_fail("interface is null"sv); } - if (a_log) { - log::init(); - } - (void)REL::Module::get(); (void)REL::IDDatabase::get(); @@ -97,6 +93,11 @@ namespace SKSE storage.pluginAuthor = pluginVersionData->GetAuthorName(); storage.pluginVersion = pluginVersionData->GetPluginVersion(); } + + if (a_log) { + log::init(); + log::info("{} v{}", GetPluginName(), GetPluginVersion()); + } #endif if (!storage.apiInit) {