Skip to content

Commit

Permalink
Fix patterns for function ctors
Browse files Browse the repository at this point in the history
  • Loading branch information
maximegmd committed Dec 6, 2023
1 parent 401bf56 commit bb0a7d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/RED4ext/Addresses.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ constexpr uintptr_t CClass_AssignDefaultValuesToProperties = 0x140158DE8 - Image
#pragma endregion

#pragma region CClassFunction
constexpr uintptr_t CClassFunction_ctor = 0x1409B00E0 - ImageBase; // 40 53 48 83 EC ? 49 8B C1 4D 8B D0 44 8B 4C 24 ?, expected: 2, index: 1
constexpr uintptr_t CClassFunction_ctor = 0x14060F5AC - ImageBase; // 40 53 48 83 EC ? 49 8B C1 4D 8B D0 44 8B 4C 24 ?, expected: 2, index: 0
#pragma endregion

#pragma region CClassStaticFunction
constexpr uintptr_t CClassStaticFunction_ctor = 0x14060F5AC - ImageBase; // 40 53 48 83 EC ? 49 8B C1 4D 8B D0 44 8B 4C 24 ?, expected: 2, index: 0
constexpr uintptr_t CClassStaticFunction_ctor = 0x1409B00E0 - ImageBase; // 40 53 48 83 EC ? 49 8B C1 4D 8B D0 44 8B 4C 24 ?, expected: 2, index: 0
#pragma endregion

#pragma region CEnum
Expand Down
4 changes: 2 additions & 2 deletions scripts/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ def get_groups() -> List[Group]:
]),

Group(name='CClassFunction', functions=[
Item(name='ctor', pattern='40 53 48 83 EC ? 49 8B C1 4D 8B D0 44 8B 4C 24 ?', expected=2, index=1)
Item(name='ctor', pattern='40 53 48 83 EC ? 49 8B C1 4D 8B D0 44 8B 4C 24 ? ? ? ? ? ? ? 01', expected=1, index=0)
]),

Group(name='CClassStaticFunction', functions=[
Item(name='ctor', pattern='40 53 48 83 EC ? 49 8B C1 4D 8B D0 44 8B 4C 24 ?', expected=2, index=0)
Item(name='ctor', pattern='40 53 48 83 EC ? 49 8B C1 4D 8B D0 44 8B 4C 24 ? ? ? ? ? ? ? 03', expected=1, index=0)
]),

Group(name='CGlobalFunction', functions=[
Expand Down

0 comments on commit bb0a7d3

Please sign in to comment.