Skip to content

Commit

Permalink
feat: AE sigma grindset (testing needed)
Browse files Browse the repository at this point in the history
  • Loading branch information
Force67 committed Nov 13, 2021
1 parent 5c5837f commit 8eaca85
Show file tree
Hide file tree
Showing 50 changed files with 2,969 additions and 2,971 deletions.
10 changes: 5 additions & 5 deletions Code/client/Games/Animation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ uint8_t TP_MAKE_THISCALL(HookPerformAction, ActorMediator, TESActionData* apActi
ActorMediator* ActorMediator::Get() noexcept
{
POINTER_FALLOUT4(ActorMediator*, s_actorMediator, 0x145AA4710 - 0x140000000);
POINTER_SKYRIMSE(ActorMediator*, s_actorMediator, 0x142F271C0 - 0x140000000);
POINTER_SKYRIMSE(ActorMediator*, s_actorMediator, 0x142FC1C90 - 0x140000000);

return *(s_actorMediator.Get());
}
Expand Down Expand Up @@ -109,9 +109,9 @@ bool ActorMediator::ForceAction(TESActionData* apAction) noexcept
TP_THIS_FUNCTION(TAnimationStep, uint8_t, ActorMediator, TESActionData*);
using TApplyAnimationVariables = void* (void*, TESActionData*);

POINTER_SKYRIMSE(TApplyAnimationVariables, ApplyAnimationVariables, 0x14063D0F0 - 0x140000000);
POINTER_SKYRIMSE(TApplyAnimationVariables, ApplyAnimationVariables, 0x140663650 - 0x140000000);
POINTER_SKYRIMSE(TAnimationStep, PerformComplexAction, 0x63B0F0);
POINTER_SKYRIMSE(void*, qword_142F271B8, 0x142F271B8 - 0x140000000);
POINTER_SKYRIMSE(void*, qword_142F271B8, 0x142FC1C88 - 0x140000000);

POINTER_FALLOUT4(TAnimationStep, PerformComplexAction, 0x140E211A0 - 0x140000000);
uint8_t result = 0;
Expand Down Expand Up @@ -173,7 +173,7 @@ TESActionData::TESActionData(uint32_t aParam1, Actor* apActor, BGSAction* apActi
: BGSActionData(aParam1, apActor, apAction, apTarget)
{
POINTER_FALLOUT4(void*, s_vtbl, 0x142C4A2A8 - 0x140000000);
POINTER_SKYRIMSE(void*, s_vtbl, 0x141548198 - 0x140000000);
POINTER_SKYRIMSE(void*, s_vtbl, 0x14163F4F8 - 0x140000000);

someFlag = false;

Expand All @@ -189,7 +189,7 @@ TESActionData::~TESActionData()
static TiltedPhoques::Initializer s_animationHook([]()
{
POINTER_FALLOUT4(TPerformAction, performAction, 0x140E20FB0 - 0x140000000);
POINTER_SKYRIMSE(TPerformAction, performAction, 0x14063AF10 - 0x140000000);
POINTER_SKYRIMSE(TPerformAction, performAction, 0x140660FC0 - 0x140000000);

RealPerformAction = performAction.Get();

Expand Down
2 changes: 1 addition & 1 deletion Code/client/Games/FormFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ IFormFactory* IFormFactory::GetForType(const uint32_t aId) noexcept
return nullptr;

POINTER_FALLOUT4(IFormFactory*, s_factories, 0x1458D3BF0 - 0x140000000);
POINTER_SKYRIMSE(IFormFactory*, s_factories, 0x141EC3CE0 - 0x140000000);
POINTER_SKYRIMSE(IFormFactory*, s_factories, 0x141F5E4A0 - 0x140000000);

return s_factories.Get()[aId];
}
Expand Down
6 changes: 3 additions & 3 deletions Code/client/Games/Forms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ TESForm* TESForm::GetById(const uint32_t aId)
using TGetFormById = TESForm*(uint32_t);

POINTER_FALLOUT4(TGetFormById, getFormById, 0x140152C90 - 0x140000000);
POINTER_SKYRIMSE(TGetFormById, getFormById, 0x140194230 - 0x140000000);
POINTER_SKYRIMSE(TGetFormById, getFormById, 0x14019F110 - 0x140000000);

return getFormById.Get()(aId);
}
Expand Down Expand Up @@ -109,10 +109,10 @@ uint32_t TESForm::GetChangeFlags() const noexcept
TP_THIS_FUNCTION(InternalGetChangeFlags, bool, void, uint32_t formId, ChangeFlags& changeFlags);

POINTER_FALLOUT4(InternalGetChangeFlags, internalGetChangeFlags, 0x140CD8160 - 0x140000000);
POINTER_SKYRIMSE(InternalGetChangeFlags, internalGetChangeFlags, 0x140577EF0 - 0x140000000);
POINTER_SKYRIMSE(InternalGetChangeFlags, internalGetChangeFlags, 0x140598A90 - 0x140000000);

POINTER_FALLOUT4(Unk*, s_singleton, 0x145A73360 - 0x140000000);
POINTER_SKYRIMSE(Unk*, s_singleton, 0x142F266F8 - 0x140000000);
POINTER_SKYRIMSE(Unk*, s_singleton, 0x142FC11C8 - 0x140000000);

const auto pUnk = *(s_singleton.Get());

Expand Down
2 changes: 1 addition & 1 deletion Code/client/Games/IAnimationGraphManagerHolder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ bool IAnimationGraphManagerHolder::SetVariableFloat(BSFixedString* apVariable, f
{
TP_THIS_FUNCTION(TSetFloatVariable, bool, IAnimationGraphManagerHolder, BSFixedString*, float);

POINTER_SKYRIMSE(TSetFloatVariable, InternalSetFloatVariable, 0x1404F0720 - 0x140000000);
POINTER_SKYRIMSE(TSetFloatVariable, InternalSetFloatVariable, 0x1405096F0 - 0x140000000);
POINTER_FALLOUT4(TSetFloatVariable, InternalSetFloatVariable, 0x14081D410 - 0x140000000);

return ThisCall(InternalSetFloatVariable, this, apVariable, aValue);
Expand Down
2 changes: 1 addition & 1 deletion Code/client/Games/INISettingCollection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
INISettingCollection* INISettingCollection::Get() noexcept
{
POINTER_FALLOUT4(INISettingCollection*, settingCollection, 0x145EDB528 - 0x140000000);
POINTER_SKYRIMSE(INISettingCollection*, settingCollection, 0x14301D758 - 0x140000000);
POINTER_SKYRIMSE(INISettingCollection*, settingCollection, 0x1430B82D8 - 0x140000000);

return *settingCollection.Get();
}
Expand Down
6 changes: 3 additions & 3 deletions Code/client/Games/Memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ struct GameHeap;
TP_THIS_FUNCTION(TFormAllocate, void*, GameHeap, size_t aSize, size_t aAlignment, bool aAligned);
TP_THIS_FUNCTION(TFormFree, void, GameHeap, void* apPtr, bool aAligned);

POINTER_SKYRIMSE(GameHeap, s_gameHeap, 0x141EBD280 - 0x140000000);
POINTER_SKYRIMSE(GameHeap, s_gameHeap, 0x141F57A80 - 0x140000000);
POINTER_FALLOUT4(GameHeap, s_gameHeap, 0x1438CC980 - 0x140000000);

POINTER_SKYRIMSE(TFormAllocate, s_formAllocate, 0x140C02260 - 0x140000000);
POINTER_SKYRIMSE(TFormAllocate, s_formAllocate, 0x140C26F00 - 0x140000000);
POINTER_FALLOUT4(TFormAllocate, s_formAllocate, 0x141B0EFD0 - 0x140000000);

POINTER_SKYRIMSE(TFormFree, s_formFree, 0x140C02560 - 0x140000000);
POINTER_SKYRIMSE(TFormFree, s_formFree, 0x140C27350 - 0x140000000);
POINTER_FALLOUT4(TFormFree, s_formFree, 0x141B0F2E0 - 0x140000000);

TFormAllocate* RealFormAllocate = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion Code/client/Games/Misc/BSScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void TP_MAKE_THISCALL(HookRegisterPapyrusFunction, BSScript::IVirtualMachine, Na

static TiltedPhoques::Initializer s_vmHooks([]()
{
POINTER_SKYRIMSE(TRegisterPapyrusFunction, s_registerPapyrusFunction, 0x141258CB0 - 0x140000000);
POINTER_SKYRIMSE(TRegisterPapyrusFunction, s_registerPapyrusFunction, 0x141381B20 - 0x140000000);
POINTER_FALLOUT4(TRegisterPapyrusFunction, s_registerPapyrusFunction, 0x1427338A0 - 0x140000000);

RealRegisterPapyrusFunction = s_registerPapyrusFunction.Get();
Expand Down
2 changes: 1 addition & 1 deletion Code/client/Games/Misc/Lock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
void Lock::SetLock(bool aIsLocked) noexcept
{
TP_THIS_FUNCTION(TSetLock, void, Lock, bool);
POINTER_SKYRIMSE(TSetLock, realSetLock, 0x140134AF0 - 0x140000000);
POINTER_SKYRIMSE(TSetLock, realSetLock, 0x14013B180 - 0x140000000);
POINTER_FALLOUT4(TSetLock, realSetLock, 0x1400B7E10 - 0x140000000);

return ThisCall(realSetLock, this, aIsLocked);
Expand Down
4 changes: 2 additions & 2 deletions Code/client/Games/Misc/QuestCallbackManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@

QuestCallbackManager* QuestCallbackManager::Get() noexcept
{
POINTER_SKYRIMSE(QuestCallbackManager*, s_instance, 0x142F4F3B0 - 0x140000000);
POINTER_SKYRIMSE(QuestCallbackManager*, s_instance, 0x142FE9FB0 - 0x140000000);
POINTER_FALLOUT4(QuestCallbackManager*, s_instance, 0x145ADCFF0 - 0x140000000);
return *s_instance.Get();
}

void QuestCallbackManager::RegisterQuest(uint32_t formId)
{
using TRegisterQuest = void(QuestCallbackManager*, uint32_t);
POINTER_SKYRIMSE(TRegisterQuest, RegisterQuest, 0x1409124E0 - 0x140000000);
POINTER_SKYRIMSE(TRegisterQuest, RegisterQuest, 0x14093F270 - 0x140000000);
POINTER_FALLOUT4(TRegisterQuest, RegisterQuest, 0x14134B0D0 - 0x140000000);

RegisterQuest(this, formId);
Expand Down
4 changes: 2 additions & 2 deletions Code/client/Games/Misc/UI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

UI* UI::Get() noexcept
{
POINTER_SKYRIMSE(UI*, s_instance, 0x141EBEB20 - 0x140000000);
POINTER_SKYRIMSE(UI*, s_instance, 0x141F59320 - 0x140000000);
POINTER_FALLOUT4(UI*, s_instance, 0x1458D0898 - 0x140000000);

return *s_instance.Get();
Expand All @@ -18,7 +18,7 @@ bool UI::IsOpen(const BSFixedString& acName) const noexcept

TP_THIS_FUNCTION(TMenuSystem_IsOpen, bool, const UI, const BSFixedString&);

POINTER_SKYRIMSE(TMenuSystem_IsOpen, s_isMenuOpen, 0x140EBE150 - 0x140000000);
POINTER_SKYRIMSE(TMenuSystem_IsOpen, s_isMenuOpen, 0x140F044A0 - 0x140000000);
POINTER_FALLOUT4(TMenuSystem_IsOpen, s_isMenuOpen, 0x142042160 - 0x140000000);

return ThisCall(s_isMenuOpen.Get(), this, acName);
Expand Down
6 changes: 3 additions & 3 deletions Code/client/Games/ModManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
ModManager* ModManager::Get() noexcept
{
POINTER_FALLOUT4(ModManager*, modManager, 0x1458CF080 - 0x140000000);
POINTER_SKYRIMSE(ModManager*, modManager, 0x141EBE428 - 0x140000000);
POINTER_SKYRIMSE(ModManager*, modManager, 0x141F58C28 - 0x140000000);

return *modManager.Get();
}
Expand Down Expand Up @@ -98,7 +98,7 @@ Mod* ModManager::GetByName(const char* acpName) const noexcept
TESObjectCELL* ModManager::GetCellFromCoordinates(int32_t aX, int32_t aY, TESWorldSpace* aWorldSpace, bool aSpawnCell) noexcept
{
TP_THIS_FUNCTION(TModManager, TESObjectCELL*, ModManager, int32_t, int32_t, TESWorldSpace*, bool);
POINTER_SKYRIMSE(TModManager, getCell, 0x14016BAC0 - 0x140000000);
POINTER_SKYRIMSE(TModManager, getCell, 0x140175940 - 0x140000000);
POINTER_FALLOUT4(TModManager, getCell, 0x140113480 - 0x140000000);

return ThisCall(getCell, this, aX, aY, aWorldSpace, aSpawnCell);
Expand All @@ -107,7 +107,7 @@ TESObjectCELL* ModManager::GetCellFromCoordinates(int32_t aX, int32_t aY, TESWor
static TiltedPhoques::Initializer s_tesHooks([]()
{
POINTER_FALLOUT4(TSpawnNewREFR, s_realSpawnNewREFR, 0x1401140B0 - 0x140000000);
POINTER_SKYRIMSE(TSpawnNewREFR, s_realSpawnNewREFR, 0x14016C210 - 0x140000000);
POINTER_SKYRIMSE(TSpawnNewREFR, s_realSpawnNewREFR, 0x140176200 - 0x140000000);

RealSpawnNewREFR = s_realSpawnNewREFR.Get();

Expand Down
26 changes: 13 additions & 13 deletions Code/client/Games/References.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ TESObjectREFR* TESObjectREFR::GetByHandle(uint32_t aHandle) noexcept

using TGetRefrByHandle = void(uint32_t& aHandle, TESObjectREFR*& apResult);

POINTER_SKYRIMSE(TGetRefrByHandle, s_getRefrByHandle, 0x1402130F0 - 0x140000000);
POINTER_SKYRIMSE(TGetRefrByHandle, s_getRefrByHandle, 0x140220880 - 0x140000000);
POINTER_FALLOUT4(TGetRefrByHandle, s_getRefrByHandle, 0x140023740 - 0x140000000);

s_getRefrByHandle.Get()(aHandle, pResult);
Expand Down Expand Up @@ -313,7 +313,7 @@ void TESObjectREFR::MoveTo(TESObjectCELL* apCell, const NiPoint3& acPosition) co
TP_THIS_FUNCTION(TInternalMoveTo, bool, const TESObjectREFR, uint32_t*&, TESObjectCELL*, TESWorldSpace*,
const NiPoint3&, const NiPoint3&);

POINTER_SKYRIMSE(TInternalMoveTo, s_internalMoveTo, 0x1409AE5C0 - 0x140000000);
POINTER_SKYRIMSE(TInternalMoveTo, s_internalMoveTo, 0x1409D33E0 - 0x140000000);
POINTER_FALLOUT4(TInternalMoveTo, s_internalMoveTo, 0x1413FE7E0 - 0x140000000);

ThisCall(s_internalMoveTo, this, s_nullHandle.Get(), apCell, apCell->worldspace, acPosition, rotation);
Expand Down Expand Up @@ -356,7 +356,7 @@ void Actor::QueueUpdate() noexcept
TP_THIS_FUNCTION(TQueueUpdate, void, Actor, bool aFaceGen, uint32_t, bool, uint32_t);
#endif

POINTER_SKYRIMSE(TQueueUpdate, QueueUpdate, 0x140693110 - 0x140000000);
POINTER_SKYRIMSE(TQueueUpdate, QueueUpdate, 0x1406BADD0 - 0x140000000);
POINTER_FALLOUT4(TQueueUpdate, QueueUpdate, 0x140D8A1F0 - 0x140000000);

#ifdef TP_SKYRIM
Expand Down Expand Up @@ -409,7 +409,7 @@ GamePtr<Actor> Actor::Create(TESNPC* apBaseForm) noexcept
void Actor::SetLevelMod(uint32_t aLevel) noexcept
{
TP_THIS_FUNCTION(TActorSetLevelMod, void, BSExtraDataList, uint32_t);
POINTER_SKYRIMSE(TActorSetLevelMod, realSetLevelMod, 0x140119450 - 0x140000000);
POINTER_SKYRIMSE(TActorSetLevelMod, realSetLevelMod, 0x1401238E0 - 0x140000000);
POINTER_FALLOUT4(TActorSetLevelMod, realSetLevelMod, 0x14008F660 - 0x140000000);

#if TP_FALLOUT4
Expand Down Expand Up @@ -455,7 +455,7 @@ ExPlayerCharacter* Actor::AsExPlayerCharacter() noexcept
PlayerCharacter* PlayerCharacter::Get() noexcept
{
POINTER_FALLOUT4(PlayerCharacter*, s_character, 0x145AA4388 - 0x140000000);
POINTER_SKYRIMSE(PlayerCharacter*, s_character, 0x142EFF7D8 - 0x140000000);
POINTER_SKYRIMSE(PlayerCharacter*, s_character, 0x142F99F90 - 0x140000000);

return *s_character.Get();
}
Expand All @@ -473,7 +473,7 @@ const GameArray<TintMask*>& PlayerCharacter::GetTints() const noexcept
Lock* TESObjectREFR::GetLock() noexcept
{
TP_THIS_FUNCTION(TGetLock, Lock*, TESObjectREFR);
POINTER_SKYRIMSE(TGetLock, realGetLock, 0x1402A74C0 - 0x140000000);
POINTER_SKYRIMSE(TGetLock, realGetLock, 0x1402B9260 - 0x140000000);
POINTER_FALLOUT4(TGetLock, realGetLock, 0x14047FEE0 - 0x140000000);

return ThisCall(realGetLock, this);
Expand All @@ -482,7 +482,7 @@ Lock* TESObjectREFR::GetLock() noexcept
Lock* TESObjectREFR::CreateLock() noexcept
{
TP_THIS_FUNCTION(TCreateLock, Lock*, TESObjectREFR);
POINTER_SKYRIMSE(TCreateLock, realCreateLock, 0x1402A7270 - 0x140000000);
POINTER_SKYRIMSE(TCreateLock, realCreateLock, 0x1402B9060 - 0x140000000);
POINTER_FALLOUT4(TCreateLock, realCreateLock, 0x14047FD20 - 0x140000000);

return ThisCall(realCreateLock, this);
Expand Down Expand Up @@ -574,22 +574,22 @@ void TP_MAKE_THISCALL(HookLockChange, TESObjectREFR)

TiltedPhoques::Initializer s_referencesHooks([]()
{
POINTER_SKYRIMSE(TSetPosition, s_setPosition, 0x140296910 - 0x140000000);
POINTER_SKYRIMSE(TSetPosition, s_setPosition, 0x1402A8EC0 - 0x140000000);
POINTER_FALLOUT4(TSetPosition, s_setPosition, 0x14040C060 - 0x140000000);

POINTER_SKYRIMSE(TRotate, s_rotateX, 0x140296680 - 0x140000000);
POINTER_SKYRIMSE(TRotate, s_rotateX, 0x1402A8CF0 - 0x140000000);
POINTER_FALLOUT4(TRotate, s_rotateX, 0x14040BE70 - 0x140000000);

POINTER_SKYRIMSE(TRotate, s_rotateY, 0x140296740 - 0x140000000);
POINTER_SKYRIMSE(TRotate, s_rotateY, 0x1402A8D70 - 0x140000000);
POINTER_FALLOUT4(TRotate, s_rotateY, 0x14040BF00 - 0x140000000);

POINTER_SKYRIMSE(TRotate, s_rotateZ, 0x140296800 - 0x140000000);
POINTER_SKYRIMSE(TRotate, s_rotateZ, 0x1402A8DF0 - 0x140000000);
POINTER_FALLOUT4(TRotate, s_rotateZ, 0x14040BF90 - 0x140000000);

POINTER_SKYRIMSE(TActorProcess, s_actorProcess, 0x1405D87F0 - 0x140000000);
POINTER_SKYRIMSE(TActorProcess, s_actorProcess, 0x1405FD7E0 - 0x140000000);
POINTER_FALLOUT4(TActorProcess, s_actorProcess, 0x140D7CEB0 - 0x140000000);

POINTER_SKYRIMSE(TLockChange, s_lockChange, 0x140285BE0 - 0x140000000);
POINTER_SKYRIMSE(TLockChange, s_lockChange, 0x140297850 - 0x140000000);
POINTER_FALLOUT4(TLockChange, s_lockChange, 0x1403EDBA0 - 0x140000000);

RealSetPosition = s_setPosition.Get();
Expand Down
13 changes: 6 additions & 7 deletions Code/client/Games/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ static TRenderPresent* RealRenderPresent = nullptr;

BGSRenderer* BGSRenderer::Get()
{
POINTER_SKYRIMSE(BGSRenderer*, s_instance, 0x143025F00 - 0x140000000);
POINTER_SKYRIMSE(BGSRenderer*, s_instance, 0x1430C0C08 - 0x140000000);
POINTER_FALLOUT4(BGSRenderer*, s_instance, 0x14609BF80 - 0x140000000);

return *(s_instance.Get());
}

ID3D11Device* BGSRenderer::GetDevice()
{
POINTER_SKYRIMSE(ID3D11Device*, s_device, 0x143025F08 - 0x140000000);
POINTER_SKYRIMSE(ID3D11Device*, s_device, 0x1430C0C10 - 0x140000000);
POINTER_FALLOUT4(ID3D11Device*, s_device, 0x1461E0918 - 0x140000000);

return *(s_device.Get());
Expand Down Expand Up @@ -87,25 +87,24 @@ static bool HookCreateViewport(void *viewport, ViewportConfig *pConfig, WindowCo

static TiltedPhoques::Initializer s_viewportHooks([]()
{
POINTER_SKYRIMSE(TCreateViewport, s_realCreateViewport, 0x140D68DD0 - 0x140000000);
POINTER_SKYRIMSE(TCreateViewport, s_realCreateViewport, 0x140DA3850 - 0x140000000);
POINTER_FALLOUT4(TCreateViewport, s_realCreateViewport, 0x141D09DA0 - 0x140000000);

RealCreateViewport = s_realCreateViewport.Get();
TP_HOOK(&RealCreateViewport, HookCreateViewport);

POINTER_SKYRIMSE(TRenderPresent, s_realRenderPresent, 0x140D6A2B0 - 0x140000000);
POINTER_SKYRIMSE(TRenderPresent, s_realRenderPresent, 0x140DA5BE0 - 0x140000000);
POINTER_FALLOUT4(TRenderPresent, s_realRenderPresent, 0x141D0B670 - 0x140000000);

RealRenderPresent = s_realRenderPresent.Get();
TP_HOOK(&RealRenderPresent, HookPresent);

#if TP_SKYRIM64
// change window mode style to have a close button
TiltedPhoques::Put(0x140000000 + (0xD71FA9 + 1), WS_OVERLAPPEDWINDOW);
TiltedPhoques::Put(0x140DA39C4 + 1, WS_OVERLAPPEDWINDOW);

// don't let the game steal the media keys in windowed mode
TiltedPhoques::Put(0x140000000 + (0xC1A0B5 + 2),
/*strip DISCL_EXCLUSIVE bits and append DISCL_NONEXCLUSIVE*/ 3);
TiltedPhoques::Put(0x140C40315 + 2, /*strip DISCL_EXCLUSIVE bits and append DISCL_NONEXCLUSIVE*/ 3);
#else
TiltedPhoques::Put(0x140000000 +
(0x1D17EE7 + 1), WS_OVERLAPPEDWINDOW);
Expand Down
10 changes: 5 additions & 5 deletions Code/client/Games/SaveLoad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ BGSSaveFormBuffer::BGSSaveFormBuffer()
{
TP_THIS_FUNCTION(CtorT, BGSSaveFormBuffer*, BGSSaveFormBuffer);

POINTER_SKYRIMSE(CtorT, ctor, 0x140599440 - 0x140000000);
POINTER_SKYRIMSE(CtorT, ctor, 0x1405BA820 - 0x140000000);
POINTER_FALLOUT4(CtorT, ctor, 0x140D09300 - 0x140000000);

ThisCall(ctor, this);
Expand Down Expand Up @@ -58,7 +58,7 @@ BGSLoadFormBuffer::BGSLoadFormBuffer(const uint32_t aChangeFlags)
{
TP_THIS_FUNCTION(CtorT, BGSLoadFormBuffer*, BGSLoadFormBuffer);

POINTER_SKYRIMSE(CtorT, ctor, 0x140597870 - 0x140000000);
POINTER_SKYRIMSE(CtorT, ctor, 0x1405B8AC0 - 0x140000000);
POINTER_FALLOUT4(CtorT, ctor, 0x140123F00 - 0x140000000);

ThisCall(ctor, this);
Expand Down Expand Up @@ -136,13 +136,13 @@ bool TP_MAKE_THISCALL(BGSLoadFormBuffer_LoadFormId, BGSLoadFormBuffer, uint32_t&
static TiltedPhoques::Initializer s_saveLoadHooks([]()
{
POINTER_FALLOUT4(TBGSLoadFormBuffer_ReadFormId, s_readFormId, 0x140D06BC0 - 0x140000000);
POINTER_SKYRIMSE(TBGSLoadFormBuffer_ReadFormId, s_readFormId, 0x140597AA0 - 0x140000000);
POINTER_SKYRIMSE(TBGSLoadFormBuffer_ReadFormId, s_readFormId, 0x1405B8D50 - 0x140000000);

POINTER_FALLOUT4(TBGSSaveFormBuffer_WriteFormId, s_writeFormId, 0x140D09AA0 - 0x140000000);
POINTER_SKYRIMSE(TBGSSaveFormBuffer_WriteFormId, s_writeFormId, 0x1405999B0 - 0x140000000);
POINTER_SKYRIMSE(TBGSSaveFormBuffer_WriteFormId, s_writeFormId, 0x1405BAD90 - 0x140000000);

POINTER_FALLOUT4(TBGSSaveFormBuffer_WriteId, s_writeId, 0x140D09A20 - 0x140000000);
POINTER_SKYRIMSE(TBGSSaveFormBuffer_WriteId, s_writeId, 0x140599930 - 0x140000000);
POINTER_SKYRIMSE(TBGSSaveFormBuffer_WriteId, s_writeId, 0x1405BAD10 - 0x140000000);

RealBGSLoadFormBuffer_ReadFormId = s_readFormId.Get();
RealBGSSaveFormBuffer_WriteFormId = s_writeFormId.Get();
Expand Down
Loading

0 comments on commit 8eaca85

Please sign in to comment.