diff --git a/source/Enderal DLL/src/Main.cpp b/source/Enderal DLL/src/Main.cpp index 63afb955..387111af 100644 --- a/source/Enderal DLL/src/Main.cpp +++ b/source/Enderal DLL/src/Main.cpp @@ -173,21 +173,20 @@ SKSEPluginLoad(const LoadInterface* skse) { TweenMenuPatch::Install(); HUDMenuPatch::Install(); - if (!REL::Module::IsVR()) { - LoadINI(&g_settings, "Data/SKSE/Plugins/EnderalSE.ini"); + LoadINI(&g_settings, "Data/SKSE/Plugins/EnderalSE.ini"); - RE::INISettingCollection::GetSingleton()->GetSetting("bModManagerMenuEnabled:General")->data.b = false; + if (g_settings.at("AchievementFix")) { + logger::info("Patching achievements..."); + AchievementFix::Install(); + } - if (g_settings.at("AchievementFix")) { - logger::info("Patching achievements..."); - AchievementFix::Install(); - } + if (!REL::Module::IsVR()) { + RE::INISettingCollection::GetSingleton()->GetSetting("bModManagerMenuEnabled:General")->data.b = false; if (g_settings.at("VideoInterruptPatch")) { logger::info("Making videos interruptible..."); BinkInterruptPatch::Install(); } - if (g_settings.at("ForceBorderless")) { ForceBorderless::Install(); } diff --git a/source/Enderal DLL/src/Patches/AchievementFix.h b/source/Enderal DLL/src/Patches/AchievementFix.h index 64c1e9e4..6ed989a3 100644 --- a/source/Enderal DLL/src/Patches/AchievementFix.h +++ b/source/Enderal DLL/src/Patches/AchievementFix.h @@ -6,7 +6,9 @@ namespace AchievementFix { REL::Relocation target; - if (REL::Module::get().version() >= REL::Version(1, 6, 1130, 0)) { + if (REL::Module::IsVR()) { + target = REL::Offset(0x17FB90); + } else if (REL::Module::get().version() >= REL::Version(1, 6, 1130, 0)) { // Checked: 1.6.1130 target = REL::ID(441528); } else {