Skip to content

Commit

Permalink
chore: update offsets for 1.7.29 (#46)
Browse files Browse the repository at this point in the history
stopgap measure until address lib
  • Loading branch information
powerof3 authored Sep 14, 2023
1 parent f12834c commit 397d4e3
Show file tree
Hide file tree
Showing 13 changed files with 54,087 additions and 54,138 deletions.
2 changes: 1 addition & 1 deletion CommonLibSF/include/RE/A/Actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace RE

inline static Actor* PlayerCharacter()
{
static REL::Relocation<Actor**> singleton{ REL::Offset(0x05594D28) };
static REL::Relocation<Actor**> singleton{ REL::Offset(0x05595BA8) };
return *singleton;
}

Expand Down
4 changes: 2 additions & 2 deletions CommonLibSF/include/RE/C/ConsoleLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ namespace RE
// BSTSDM
[[nodiscard]] static ConsoleLog* GetSingleton()
{
static REL::Relocation<ConsoleLog**> singleton{ REL::Offset(0x058F6C50) };
static REL::Relocation<ConsoleLog**> singleton{ REL::Offset(0x058F7A90) };
return *singleton;
}

void Print(const char* a_fmt, std::va_list a_args)
{
using func_t = decltype(&ConsoleLog::Print);
REL::Relocation<func_t> func{ REL::Offset(0x02883B48) };
REL::Relocation<func_t> func{ REL::Offset(0x02883978) };
func(this, a_fmt, a_args);
}
};
Expand Down
2 changes: 1 addition & 1 deletion CommonLibSF/include/RE/F/FORM_ENUM_STRING.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace RE
public:
[[nodiscard]] static std::span<FORM_ENUM_STRING, 215> GetFormEnumString()
{
REL::Relocation<FORM_ENUM_STRING(*)[215]> formEnumString{ REL::Offset(0x50136A0) };
REL::Relocation<FORM_ENUM_STRING(*)[215]> formEnumString{ REL::Offset(0x50146A0) };
return { *formEnumString };
}

Expand Down
2 changes: 1 addition & 1 deletion CommonLibSF/include/RE/I/INIPrefSettingCollection.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace RE

[[nodiscard]] static INIPrefSettingCollection* GetSingleton()
{
REL::Relocation<INIPrefSettingCollection**> singleton{ REL::Offset(0x0) };
REL::Relocation<INIPrefSettingCollection**> singleton{ REL::Offset(0x05913BB8) };
return *singleton;
}

Expand Down
2 changes: 1 addition & 1 deletion CommonLibSF/include/RE/I/INISettingCollection.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace RE

[[nodiscard]] static INISettingCollection* GetSingleton()
{
REL::Relocation<INISettingCollection**> singleton{ REL::Offset(0x0) };
REL::Relocation<INISettingCollection**> singleton{ REL::Offset(0x05913B98) };
return *singleton;
}

Expand Down
4 changes: 2 additions & 2 deletions CommonLibSF/include/RE/N/NativeFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ namespace RE
NativeFunction(const char* a_name, const char* a_className, bool a_isStatic, std::uint32_t a_numParams)
{
using func_t = std::add_pointer_t<NativeFunction*(NativeFunction*, const char*, const char*, bool, std::uint32_t)>;
REL::Relocation<func_t> func{ REL::Offset(0x03077138) };
REL::Relocation<func_t> func{ REL::Offset(0x03076DE8) };
func(this, a_name, a_className, a_isStatic, a_numParams);
}

virtual ~NativeFunction()
{
using func_t = std::add_pointer_t<void(NativeFunction*)>;
REL::Relocation<func_t> func{ REL::Offset(0x030771F4) };
REL::Relocation<func_t> func{ REL::Offset(0x03076EA4) };
func(this);
}

Expand Down
10 changes: 5 additions & 5 deletions CommonLibSF/include/RE/N/NativeFunctionBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace RE
virtual std::uint64_t* GetParam(std::uint32_t a_idx, BSFixedString* a_nameOut, std::uint64_t* a_typeOut)
{
using func_t = std::add_pointer_t<std::uint64_t*(ParameterInfo*, std::uint32_t, BSFixedString*, std::uint64_t*)>;
REL::Relocation<func_t> func{ REL::Offset(0x030775DC) };
REL::Relocation<func_t> func{ REL::Offset(0x0307728C) };
return func(&_params, a_idx, a_nameOut, a_typeOut);
}
virtual std::uint64_t GetNumParams2(void) override { return _params.unk0A; }
Expand All @@ -73,13 +73,13 @@ namespace RE
virtual std::uint32_t Invoke(std::uint64_t a_unk0, std::uint64_t a_unk1, VMClassRegistry* a_registry, VMState* a_unk3) override
{
using func_t = decltype(&NativeFunctionBase::Invoke);
REL::Relocation<func_t> func{ REL::Offset(0x030772B4) };
REL::Relocation<func_t> func{ REL::Offset(0x03076F64) };
return func(this, a_unk0, a_unk1, a_registry, a_unk3);
}
virtual BSFixedString* Unk_10(void) override
{
using func_t = decltype(&NativeFunctionBase::Unk_10);
REL::Relocation<func_t> func{ REL::Offset(0x03077644) };
REL::Relocation<func_t> func{ REL::Offset(0x030772F4) };
return func(this);
}
virtual bool Unk_11(std::uint32_t a_unk0, std::uint32_t* a_unk1) override
Expand All @@ -104,13 +104,13 @@ namespace RE
virtual bool GetParamInfo(std::uint32_t a_idx, void* a_out) override
{
using func_t = decltype(&NativeFunctionBase::GetParamInfo);
REL::Relocation<func_t> func{ REL::Offset(0x030776E0) };
REL::Relocation<func_t> func{ REL::Offset(0x03077390) };
return func(this, a_idx, a_out);
}
virtual void* Unk_15(std::uint64_t a_arg0, std::uint64_t a_arg1)
{
using func_t = decltype(&NativeFunctionBase::Unk_15);
REL::Relocation<func_t> func{ REL::Offset(0x0307764C) };
REL::Relocation<func_t> func{ REL::Offset(0x030772FC) };
return func(this, a_arg0, a_arg1);
}
virtual bool GetUnk41(void) override { return _isCallableFromTasklet; }
Expand Down
Loading

0 comments on commit 397d4e3

Please sign in to comment.