File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ class GuiData {
77public:
88 void displayLocalMessage (const std::string& message) {
99 using fn_t = decltype (&GuiData::displayLocalMessage);
10- static fn_t fn = std::bit_cast<fn_t >(selaura::find_signature<" E8 ? ? ? ? 90 48 85 DB 74 ? 48 8B CB E8 ? ? ? ? 90 E9 ? ? ? ? 0F 57 C0 0F 11 45 ? 66 0F 6F 0D" >());
10+ // TODO: Broken
11+ static fn_t fn = std::bit_cast<fn_t >(selaura::find_signature<" 40 55 53 56 57 41 56 48 8D AC 24 ? ? ? ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 85 ? ? ? ? 41 0F B6 F9" >());
1112 return (this ->*fn)(message);
1213 }
1314};
Original file line number Diff line number Diff line change @@ -59,21 +59,18 @@ void ScreenView::setupAndRender_hk(MinecraftUIRenderContext *ctx) {
5959}
6060
6161void selaura::init_hooks () {
62- /* Minecraft_$ctor_hk = safetyhook::create_inline(
63- find_signature<"48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D 6C 24 ? 48 81 EC ? ? ? ? 4D 8B E1 49 8B D8 4C 8B EA ">(),
62+ Minecraft_$ctor_hk = safetyhook::create_inline (
63+ find_signature<" 48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D 6C 24 ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 45 ? 4D 8B E9 49 8B D8 4C 8B F2 " >(),
6464 abi::mpf_to_fn (&Minecraft::$ctor)
6565 );
6666
67- ClientInstance_$ctor_hk = safetyhook::create_inline(
68- find_signature<"48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D 6C 24 ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 45 ? 49 8B F9 49 8B D8 4C 8B E2">(),
69- abi::mpf_to_fn(&ClientInstance::$ctor)
70- );*/
71-
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 );
67+ // ClientInstance_$ctor_hk = safetyhook::create_inline(
68+ // find_signature<"48 89 5C 24 ? 55 56 57 41 54 41 55 41 56 41 57 48 8D 6C 24 ? 48 81 EC ? ? ? ? 48 8B 05 ? ? ? ? 48 33 C4 48 89 45 ? 49 8B F9 49 8B D8 4C 8B E2">(),
69+ // abi::mpf_to_fn(&ClientInstance::$ctor)
70+ // );
7471
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}
Original file line number Diff line number Diff line change @@ -24,4 +24,4 @@ void after_ui(selaura::SetupAndRenderEvent<selaura::event_phase::post>& ev) {
2424
2525SELAURA_API void SelauraPluginInit (selaura::runtime* runtime) {
2626 runtime->event_manager ->subscribe (&after_ui);
27- }
27+ }
You can’t perform that action at this time.
0 commit comments