From 0bc23ba2c71a24b7e0de41821acbc9376442e6c1 Mon Sep 17 00:00:00 2001 From: Blu3train Date: Wed, 15 Mar 2023 21:10:13 +0100 Subject: [PATCH] update ShinaRio 2.50+ --- texthook/engine/engine.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/texthook/engine/engine.cc b/texthook/engine/engine.cc index e8a464e..c2c7abc 100644 --- a/texthook/engine/engine.cc +++ b/texthook/engine/engine.cc @@ -5803,7 +5803,7 @@ bool InsertShinaHook() trigger_fun = [](LPVOID funcAddr, DWORD, DWORD stack) { bool ret = false; - if (funcAddr != GetGlyphOutlineA) return false; + if (funcAddr != GetGlyphOutlineA && funcAddr != GetTextExtentPoint32A) return false; for (int i = 0; i < 100; ++i) { // Address of text is somewhere on stack in call to func. Search for it. @@ -5817,7 +5817,7 @@ bool InsertShinaHook() hp.type = DIRECT_READ; hp.address = addr; ConsoleOutput("Textractor: triggered: adding dynamic reader"); - NewHook(hp, "READ"); + NewHook(hp, "ShinaRio READ"); ret = true; } };