4
Fork 0

Added Tween Menu addresses for VR

development
Eddoursul 2 months ago
parent 7a925fa9c7
commit 2674fd74fc
  1. 2
      source/Enderal DLL/src/Patches/TweenMenuPatch.h
  2. 4
      source/Enderal DLL/src/Util.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_t> func{ REL::RelocationID(51845, 52718) };
REL::Relocation<func_t> func{ REL::VariantID(51845, 52718, 0x8FE7E0) };
return func(tweenMenu, index);
}

@ -180,8 +180,8 @@ inline void CloseTweenMenu()
{
if (RE::UI::GetSingleton()->IsMenuOpen(RE::TweenMenu::MENU_NAME)) {
using func_t = decltype(&CloseTweenMenu);
REL::Relocation<func_t> func{ REL::RelocationID(51839, 52711) };
return func();
REL::Relocation<func_t> func{ REL::VariantID(51839, 52711, 0x8FE180) };
func();
}
}

Loading…
Cancel
Save