From 2674fd74fcdbaa5e9166742b70e6a176ded59a0c Mon Sep 17 00:00:00 2001 From: Eddoursul Date: Thu, 15 Feb 2024 19:23:30 +0100 Subject: [PATCH] Added Tween Menu addresses for VR --- source/Enderal DLL/src/Patches/TweenMenuPatch.h | 2 +- source/Enderal DLL/src/Util.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Enderal DLL/src/Patches/TweenMenuPatch.h b/source/Enderal DLL/src/Patches/TweenMenuPatch.h index 5399d0b0..63e46582 100644 --- a/source/Enderal DLL/src/Patches/TweenMenuPatch.h +++ b/source/Enderal DLL/src/Patches/TweenMenuPatch.h @@ -12,7 +12,7 @@ private: { using func_t = decltype(&OpenMenu); // Checked: 1.5.97, 1.6.640, 1.6.659, 1.6.1130 - REL::Relocation func{ REL::RelocationID(51845, 52718) }; + REL::Relocation func{ REL::VariantID(51845, 52718, 0x8FE7E0) }; return func(tweenMenu, index); } diff --git a/source/Enderal DLL/src/Util.h b/source/Enderal DLL/src/Util.h index ac9207bc..94c24803 100644 --- a/source/Enderal DLL/src/Util.h +++ b/source/Enderal DLL/src/Util.h @@ -180,8 +180,8 @@ inline void CloseTweenMenu() { if (RE::UI::GetSingleton()->IsMenuOpen(RE::TweenMenu::MENU_NAME)) { using func_t = decltype(&CloseTweenMenu); - REL::Relocation func{ REL::RelocationID(51839, 52711) }; - return func(); + REL::Relocation func{ REL::VariantID(51839, 52711, 0x8FE180) }; + func(); } }