From 1d44b4887021e24562af916b165f3fe9bf7dc58f Mon Sep 17 00:00:00 2001 From: Dregu Date: Mon, 3 Jun 2024 21:36:29 +0300 Subject: [PATCH] add patterns --- search.cpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/search.cpp b/search.cpp index 87e8a2b..eeb7b0e 100644 --- a/search.cpp +++ b/search.cpp @@ -635,15 +635,26 @@ std::unordered_map g_address_rules{ }, { "mural_cursor"sv, - PatternCommandBuffer{}.from_exe_base(0xafeab), + PatternCommandBuffer{} //.from_exe_base(0xafeab), + .set_optional(true) + .find_after_inst(".. 8b 05 .. .. .. .. .. 83 b8 48 ba 09 00 00"_gh) + .at_exe(), }, { "render"sv, - PatternCommandBuffer{}.from_exe_base(0x4dcc0), + PatternCommandBuffer{} //.from_exe_base(0x4dcc0), + .set_optional(true) + .find_inst("b8 a8 2a 00 00 e8"_gh) + .at_exe() + .function_start(), }, { "draw_text"sv, - PatternCommandBuffer{}.from_exe_base(0x71010), + PatternCommandBuffer{} //.from_exe_base(0x71010), + .set_optional(true) + .find_inst("48 83 ec 58 4d 85 c0"_gh) + .at_exe() + .function_start(), }, /*{ "decrypt_asset"sv,