mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 23:30:53 +01:00
23 lines
843 B
C++
23 lines
843 B
C++
|
|
|
||
|
|
// The game calls it statsmenu.
|
||
|
|
#include <Interface/Menus/SkillsMenu.h>
|
||
|
|
|
||
|
|
static TiltedPhoques::Initializer s_skillsMenuInit(
|
||
|
|
[]()
|
||
|
|
{
|
||
|
|
// https://github.com/Vermunds/SkyrimSoulsRE/blob/master/src/Menus/StatsMenuEx.cpp
|
||
|
|
// Hoooks from souls RE
|
||
|
|
// Fix for menu not appearing
|
||
|
|
VersionDbPtr<uint8_t> ProcessMessage(52510);
|
||
|
|
TiltedPhoques::Nop(ProcessMessage.Get() + 0x84E, 6);
|
||
|
|
// Prevent setting kFreezeFrameBackground flag
|
||
|
|
TiltedPhoques::Nop(ProcessMessage.Get() + 0xA10, 4);
|
||
|
|
// Keep the menu updated
|
||
|
|
TiltedPhoques::Nop(ProcessMessage.Get() + 0x1040, 2);
|
||
|
|
|
||
|
|
// Fix for controls not working
|
||
|
|
VersionDbPtr<uint8_t> controlPatch(52518);
|
||
|
|
TiltedPhoques::Nop(controlPatch.Get() + 0x46, 4);
|
||
|
|
TiltedPhoques::Nop(controlPatch.Get() + 0x4A, 2);
|
||
|
|
});
|