From 2f0de6a8e3cc1b98c3fb49bbc490904fbb81d9d8 Mon Sep 17 00:00:00 2001 From: ThirteenAG Date: Thu, 5 Sep 2024 01:23:30 +0800 Subject: [PATCH] fix cleo redux compat --- source/settings.ixx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/settings.ixx b/source/settings.ixx index fa57ed49..7a8a09c4 100644 --- a/source/settings.ixx +++ b/source/settings.ixx @@ -58,12 +58,12 @@ namespace CText auto pattern = find_pattern("B9 ? ? ? ? E8 ? ? ? ? 50 8D 84 24 ? ? ? ? 50 E8 ? ? ? ? 83 C4 0C", "B9 ? ? ? ? E8 ? ? ? ? 50 8D 84 24 ? ? ? ? 68 ? ? ? ? 50 BA ? ? ? ? E8 ? ? ? ? 83 C4 14"); g_text = *pattern.get_first(1); - pattern = find_pattern("83 EC 44 A1 ? ? ? ? 33 C4 89 44 24 40 8B 44 24 48 56 8B F1", "83 EC 44 A1 ? ? ? ? 33 C4 89 44 24 40 8B 44 24 48 85 C0"); - Get = *pattern.get_first(0); - //shGetText = safetyhook::create_inline(pattern.get_first(), getText); + pattern = find_pattern("E8 ? ? ? ? 50 68 ? ? ? ? 8D 84 24 ? ? ? ? 68 ? ? ? ? 50 E8 ? ? ? ? 83 C4 18", "E8 ? ? ? ? 50 8D 84 24 ? ? ? ? 68 ? ? ? ? 50 BA ? ? ? ? E8 ? ? ? ? 83 C4 14"); + Get = (const wchar_t* (__fastcall*)(void*, void*, const char*))injector::GetBranchDestination(pattern.get_first(0)).as_int(); + //shGetText = safetyhook::create_inline(injector::GetBranchDestination(pattern.get_first()).as_int(), getText); - pattern = find_pattern("83 EC 48 A1 ? ? ? ? 33 C4 89 44 24 44 53 55", "83 EC 48 A1 ? ? ? ? 33 C4 89 44 24 44 53 55"); - shGetTextByKey = safetyhook::create_inline(pattern.get_first(), getTextByKey); + pattern = find_pattern("E8 ? ? ? ? 50 8D 86 ? ? ? ? 50 E8 ? ? ? ? 83 C4 0C EB 27", "E8 ? ? ? ? 50 8D 8F ? ? ? ? 51"); + shGetTextByKey = safetyhook::create_inline(injector::GetBranchDestination(pattern.get_first()).as_int(), getTextByKey); pattern = find_pattern("51 8B 44 24 08 53 8B D9 C6 44 24", "51 8B 44 24 08 85 C0 53 8B D9"); shDoesTextLabelExist = safetyhook::create_inline(pattern.get_first(), doesTextLabelExist);