diff --git a/include/SKSE/Interfaces.h b/include/SKSE/Interfaces.h index 4a1086ad4..a204360cf 100644 --- a/include/SKSE/Interfaces.h +++ b/include/SKSE/Interfaces.h @@ -360,6 +360,7 @@ namespace SKSE const char* name; std::uint32_t version; }; + #ifdef SKYRIM_SUPPORT_AE struct PluginVersionData { diff --git a/src/SKSE/API.cpp b/src/SKSE/API.cpp index 0a80f1096..3ad841b85 100644 --- a/src/SKSE/API.cpp +++ b/src/SKSE/API.cpp @@ -1,5 +1,6 @@ #include "SKSE/API.h" +#include "SKSE/Interfaces.h" #include "SKSE/Logger.h" namespace SKSE @@ -76,10 +77,7 @@ namespace SKSE } if (a_log) { - // remove ifdef once 1.5.x support is removed -#ifdef SKYRIM_SUPPORT_AE log::init(); -#endif } (void)REL::Module::get(); diff --git a/src/SKSE/Interfaces.cpp b/src/SKSE/Interfaces.cpp index 6cf961398..0308c34ac 100644 --- a/src/SKSE/Interfaces.cpp +++ b/src/SKSE/Interfaces.cpp @@ -342,8 +342,10 @@ namespace SKSE return reinterpret_cast(this); } +#ifdef SKYRIM_SUPPORT_AE const PluginVersionData* PluginVersionData::GetSingleton() noexcept { return reinterpret_cast(REX::W32::GetProcAddress(REX::W32::GetCurrentModule(), "SKSEPlugin_Version")); } +#endif } diff --git a/src/SKSE/Logger.cpp b/src/SKSE/Logger.cpp index ab0e99aa5..21784b4a6 100644 --- a/src/SKSE/Logger.cpp +++ b/src/SKSE/Logger.cpp @@ -119,6 +119,8 @@ namespace SKSE void init() { + // remove ifdef if 1.5.x support is removed +#ifdef SKYRIM_SUPPORT_AE auto path = log_directory(); if (!path) { return; @@ -142,6 +144,7 @@ namespace SKSE #endif spdlog::set_default_logger(std::move(logger)); spdlog::set_pattern("[%T.%e] [%=5t] [%L] %v"); +#endif } } }