From 594198c921c9fe64eb8e89288e4e90c0d573725a Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Fri, 9 Aug 2019 22:38:07 -0400 Subject: [PATCH] treat unity as full string --- texthook/engine/engine.cc | 2 +- texthook/engine/match64.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/texthook/engine/engine.cc b/texthook/engine/engine.cc index 9749b13..6df2afd 100644 --- a/texthook/engine/engine.cc +++ b/texthook/engine/engine.cc @@ -16576,7 +16576,7 @@ void InsertMonoHook(HMODULE h) { HookParam hp = {}; hp.address = addr; - hp.type = USING_UNICODE; + hp.type = USING_UNICODE | FULL_STRING; hp.offset = 4; hp.text_fun = [](DWORD esp_base, HookParam*, BYTE, DWORD* data, DWORD* split, DWORD* len) { diff --git a/texthook/engine/match64.cc b/texthook/engine/match64.cc index 28f9e5e..90cf81d 100644 --- a/texthook/engine/match64.cc +++ b/texthook/engine/match64.cc @@ -89,7 +89,7 @@ namespace Engine { HookParam hp = {}; hp.address = addr; - hp.type = USING_STRING | USING_UNICODE; + hp.type = USING_STRING | USING_UNICODE | FULL_STRING; hp.offset = -0x20; // rcx hp.padding = 20; hp.length_fun = [](uintptr_t, uintptr_t data)