Skip to content

Commit

Permalink
feat: Update IDs. (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlenarnTemp authored May 19, 2024
1 parent 9e0ccf9 commit 72f25db
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions CommonLibF4/include/RE/Bethesda/BGSStoryManagerTreeForm.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ namespace RE
struct ListObjectivesAccess;
struct ListStagesAccess;

bool SetStage(std::uint16_t stage)
bool SetStage(std::uint16_t a_stage)
{
using func_t = decltype(&TESQuest::SetStage);
REL::Relocation<func_t> func{ REL::ID(2207743) };
return func(this, stage);
return func(this, a_stage);
}

BSPointerHandle<TESObjectREFR>* GetAliasedRef(BSPointerHandle<TESObjectREFR>* a_result, std::uint32_t a_aiAliasID)
Expand Down
2 changes: 1 addition & 1 deletion CommonLibF4/include/RE/Bethesda/BSHavok.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace RE
static bool RemoveObjects(NiAVObject* a_object, bool a_recurse, bool a_force)
{
using func_t = decltype(&RemoveObjects);
REL::Relocation<func_t> func{ REL::ID(1514984) };
REL::Relocation<func_t> func{ REL::ID(2277721) };
return func(a_object, a_recurse, a_force);
}

Expand Down
4 changes: 2 additions & 2 deletions CommonLibF4/include/RE/Bethesda/BSPointerHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ namespace RE
static BSPointerHandle<T> CreateHandle(T* a_ptr)
{
using func_t = decltype(&BSPointerHandleManagerInterface<T, Manager>::CreateHandle);
REL::Relocation<func_t> func{ REL::ID(224532) };
REL::Relocation<func_t> func{ REL::ID(2188375) };
return func(a_ptr);
}

Expand All @@ -175,7 +175,7 @@ namespace RE
static bool GetSmartPointer(const BSPointerHandle<T>& a_handle, NiPointer<T>& a_smartPointerOut)
{
using func_t = decltype(&BSPointerHandleManagerInterface<T, Manager>::GetSmartPointer);
REL::Relocation<func_t> func{ REL::ID(967277) };
REL::Relocation<func_t> func{ REL::ID(2188369) };
return func(a_handle, a_smartPointerOut);
}
};
Expand Down
6 changes: 3 additions & 3 deletions CommonLibF4/include/RE/Bethesda/TESObjectREFRs.h
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ namespace RE
void AddKeyword(BGSKeyword* kwd)
{
using func_t = decltype(&TESObjectREFR::AddKeyword);
REL::Relocation<func_t> func{ REL::ID(640674) };
REL::Relocation<func_t> func{ REL::ID(2200860) };
return func(this, kwd);
}

Expand Down Expand Up @@ -734,14 +734,14 @@ namespace RE
[[nodiscard]] BGSLocation* GetCurrentLocation() const
{
using func_t = decltype(&TESObjectREFR::GetCurrentLocation);
REL::Relocation<func_t> func{ REL::ID(1135470) };
REL::Relocation<func_t> func{ REL::ID(2201163) };
return func(this);
}

[[nodiscard]] const char* GetDisplayFullName()
{
using func_t = decltype(&TESObjectREFR::GetDisplayFullName);
REL::Relocation<func_t> func{ REL::ID(1212056) };
REL::Relocation<func_t> func{ REL::ID(2201126) };
return func(this);
}

Expand Down
18 changes: 9 additions & 9 deletions CommonLibF4/include/RE/Scaleform/GFx/GFx_Player.h
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,14 @@ namespace RE::Scaleform::GFx
void ObjectAddRef(Value* a_val, void* a_obj)
{
using func_t = decltype(&ObjectInterface::ObjectRelease);
REL::Relocation<func_t> func{ REL::ID(244786) };
REL::Relocation<func_t> func{ REL::ID(2286228) };
return func(this, a_val, a_obj);
}

void ObjectRelease(Value* a_val, void* a_obj)
{
using func_t = decltype(&ObjectInterface::ObjectRelease);
REL::Relocation<func_t> func{ REL::ID(856221) };
REL::Relocation<func_t> func{ REL::ID(2286229) };
return func(this, a_val, a_obj);
}

Expand All @@ -333,35 +333,35 @@ namespace RE::Scaleform::GFx
std::uint32_t GetArraySize(void* a_data) const
{
using func_t = decltype(&ObjectInterface::GetArraySize);
REL::Relocation<func_t> func{ REL::ID(254218) };
REL::Relocation<func_t> func{ REL::ID(2285791) };
return func(this, a_data);
}

bool GetMember(void* a_data, const char* a_name, Value* a_val, bool a_isdobj) const
{
using func_t = decltype(&ObjectInterface::GetMember);
REL::Relocation<func_t> func{ REL::ID(1517430) };
REL::Relocation<func_t> func{ REL::ID(2285936) };
return func(this, a_data, a_name, a_val, a_isdobj);
}

bool SetMember(void* a_data, const char* a_name, const Value& a_value, bool a_isdobj)
{
using func_t = decltype(&ObjectInterface::SetMember);
REL::Relocation<func_t> func{ REL::ID(1360149) };
REL::Relocation<func_t> func{ REL::ID(2286589) };
return func(this, a_data, a_name, a_value, a_isdobj);
}

bool Invoke(void* a_data, Value* a_result, const char* a_name, const Value* a_args, std::size_t a_numArgs, bool a_isdobj)
{
using func_t = decltype(&ObjectInterface::Invoke);
REL::Relocation<func_t> func{ REL::ID(655847) };
REL::Relocation<func_t> func{ REL::ID(2286101) };
return func(this, a_data, a_result, a_name, a_args, a_numArgs, a_isdobj);
}

bool PushBack(void* a_data, const Value& a_value)
{
using func_t = decltype(&ObjectInterface::PushBack);
REL::Relocation<func_t> func{ REL::ID(1330475) };
REL::Relocation<func_t> func{ REL::ID(2286424) };
return func(this, a_data, a_value);
}

Expand All @@ -375,7 +375,7 @@ namespace RE::Scaleform::GFx
void VisitMembers(void* a_data, ObjVisitor* a_visitor, bool a_isDObj) const
{
using func_t = decltype(&ObjectInterface::VisitMembers);
REL::Relocation<func_t> func{ REL::ID(1276961) };
REL::Relocation<func_t> func{ REL::ID(2286786) };
return func(this, a_data, a_visitor, a_isDObj);
}

Expand Down Expand Up @@ -956,7 +956,7 @@ namespace RE::Scaleform::GFx
void Release()
{
using func_t = decltype(&Movie::Release);
REL::Relocation<func_t> func{ REL::ID(404814) };
REL::Relocation<func_t> func{ REL::ID(2287230) };
return func(this);
}

Expand Down

0 comments on commit 72f25db

Please sign in to comment.