Skip to content

Commit 397d4e3

Browse files
authored
chore: update offsets for 1.7.29 (#46)
stopgap measure until address lib
1 parent f12834c commit 397d4e3

File tree

13 files changed

+54087
-54138
lines changed

13 files changed

+54087
-54138
lines changed

CommonLibSF/include/RE/A/Actor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace RE
1515

1616
inline static Actor* PlayerCharacter()
1717
{
18-
static REL::Relocation<Actor**> singleton{ REL::Offset(0x05594D28) };
18+
static REL::Relocation<Actor**> singleton{ REL::Offset(0x05595BA8) };
1919
return *singleton;
2020
}
2121

CommonLibSF/include/RE/C/ConsoleLog.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ namespace RE
1010
// BSTSDM
1111
[[nodiscard]] static ConsoleLog* GetSingleton()
1212
{
13-
static REL::Relocation<ConsoleLog**> singleton{ REL::Offset(0x058F6C50) };
13+
static REL::Relocation<ConsoleLog**> singleton{ REL::Offset(0x058F7A90) };
1414
return *singleton;
1515
}
1616

1717
void Print(const char* a_fmt, std::va_list a_args)
1818
{
1919
using func_t = decltype(&ConsoleLog::Print);
20-
REL::Relocation<func_t> func{ REL::Offset(0x02883B48) };
20+
REL::Relocation<func_t> func{ REL::Offset(0x02883978) };
2121
func(this, a_fmt, a_args);
2222
}
2323
};

CommonLibSF/include/RE/F/FORM_ENUM_STRING.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace RE
99
public:
1010
[[nodiscard]] static std::span<FORM_ENUM_STRING, 215> GetFormEnumString()
1111
{
12-
REL::Relocation<FORM_ENUM_STRING(*)[215]> formEnumString{ REL::Offset(0x50136A0) };
12+
REL::Relocation<FORM_ENUM_STRING(*)[215]> formEnumString{ REL::Offset(0x50146A0) };
1313
return { *formEnumString };
1414
}
1515

CommonLibSF/include/RE/I/INIPrefSettingCollection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace RE
1111

1212
[[nodiscard]] static INIPrefSettingCollection* GetSingleton()
1313
{
14-
REL::Relocation<INIPrefSettingCollection**> singleton{ REL::Offset(0x0) };
14+
REL::Relocation<INIPrefSettingCollection**> singleton{ REL::Offset(0x05913BB8) };
1515
return *singleton;
1616
}
1717

CommonLibSF/include/RE/I/INISettingCollection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace RE
1111

1212
[[nodiscard]] static INISettingCollection* GetSingleton()
1313
{
14-
REL::Relocation<INISettingCollection**> singleton{ REL::Offset(0x0) };
14+
REL::Relocation<INISettingCollection**> singleton{ REL::Offset(0x05913B98) };
1515
return *singleton;
1616
}
1717

CommonLibSF/include/RE/N/NativeFunction.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ namespace RE
1313
NativeFunction(const char* a_name, const char* a_className, bool a_isStatic, std::uint32_t a_numParams)
1414
{
1515
using func_t = std::add_pointer_t<NativeFunction*(NativeFunction*, const char*, const char*, bool, std::uint32_t)>;
16-
REL::Relocation<func_t> func{ REL::Offset(0x03077138) };
16+
REL::Relocation<func_t> func{ REL::Offset(0x03076DE8) };
1717
func(this, a_name, a_className, a_isStatic, a_numParams);
1818
}
1919

2020
virtual ~NativeFunction()
2121
{
2222
using func_t = std::add_pointer_t<void(NativeFunction*)>;
23-
REL::Relocation<func_t> func{ REL::Offset(0x030771F4) };
23+
REL::Relocation<func_t> func{ REL::Offset(0x03076EA4) };
2424
func(this);
2525
}
2626

CommonLibSF/include/RE/N/NativeFunctionBase.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace RE
5959
virtual std::uint64_t* GetParam(std::uint32_t a_idx, BSFixedString* a_nameOut, std::uint64_t* a_typeOut)
6060
{
6161
using func_t = std::add_pointer_t<std::uint64_t*(ParameterInfo*, std::uint32_t, BSFixedString*, std::uint64_t*)>;
62-
REL::Relocation<func_t> func{ REL::Offset(0x030775DC) };
62+
REL::Relocation<func_t> func{ REL::Offset(0x0307728C) };
6363
return func(&_params, a_idx, a_nameOut, a_typeOut);
6464
}
6565
virtual std::uint64_t GetNumParams2(void) override { return _params.unk0A; }
@@ -73,13 +73,13 @@ namespace RE
7373
virtual std::uint32_t Invoke(std::uint64_t a_unk0, std::uint64_t a_unk1, VMClassRegistry* a_registry, VMState* a_unk3) override
7474
{
7575
using func_t = decltype(&NativeFunctionBase::Invoke);
76-
REL::Relocation<func_t> func{ REL::Offset(0x030772B4) };
76+
REL::Relocation<func_t> func{ REL::Offset(0x03076F64) };
7777
return func(this, a_unk0, a_unk1, a_registry, a_unk3);
7878
}
7979
virtual BSFixedString* Unk_10(void) override
8080
{
8181
using func_t = decltype(&NativeFunctionBase::Unk_10);
82-
REL::Relocation<func_t> func{ REL::Offset(0x03077644) };
82+
REL::Relocation<func_t> func{ REL::Offset(0x030772F4) };
8383
return func(this);
8484
}
8585
virtual bool Unk_11(std::uint32_t a_unk0, std::uint32_t* a_unk1) override
@@ -104,13 +104,13 @@ namespace RE
104104
virtual bool GetParamInfo(std::uint32_t a_idx, void* a_out) override
105105
{
106106
using func_t = decltype(&NativeFunctionBase::GetParamInfo);
107-
REL::Relocation<func_t> func{ REL::Offset(0x030776E0) };
107+
REL::Relocation<func_t> func{ REL::Offset(0x03077390) };
108108
return func(this, a_idx, a_out);
109109
}
110110
virtual void* Unk_15(std::uint64_t a_arg0, std::uint64_t a_arg1)
111111
{
112112
using func_t = decltype(&NativeFunctionBase::Unk_15);
113-
REL::Relocation<func_t> func{ REL::Offset(0x0307764C) };
113+
REL::Relocation<func_t> func{ REL::Offset(0x030772FC) };
114114
return func(this, a_arg0, a_arg1);
115115
}
116116
virtual bool GetUnk41(void) override { return _isCallableFromTasklet; }

0 commit comments

Comments
 (0)