Skip to content

Commit af19b60

Browse files
authored
Merge pull request #33 from jeanmajid/master
ScreenView_setupAndRender hook
2 parents 21956d7 + 49d21c9 commit af19b60

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/hooks/hooks.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,8 @@ void selaura::init_hooks() {
6969
abi::mpf_to_fn(&ClientInstance::$ctor)
7070
);*/
7171

72-
auto begin = find_signature<"E8 ? ? ? ? 48 8B 4B ? 48 85 C9 74 ? 48 8B 01 48 8B D7 48 8B 40 ? FF 15 ? ? ? ? 90">();
73-
auto final_address = reinterpret_cast<uintptr_t>(begin) + 5 + *(int32_t *) (reinterpret_cast<uintptr_t>(begin) + 1);
74-
7572
ScreenView_setupAndRender_hk = safetyhook::create_inline(
76-
final_address,
73+
find_signature<"48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 0F 29 BC 24 ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 4C 8B FA">(),
7774
abi::mpf_to_fn(&ScreenView::setupAndRender_hk)
7875
);
7976
}

0 commit comments

Comments
 (0)