From 590c08e8d0d7178a2ff6589ac5ec8b35c8283269 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Thu, 29 Aug 2019 13:09:31 -0400 Subject: [PATCH] more consistent Light.vn hook --- 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 f32d03a..37cfe1f 100644 --- a/texthook/engine/engine.cc +++ b/texthook/engine/engine.cc @@ -80,7 +80,7 @@ namespace { // unnamed helpers hp.address = addr; ConsoleOutput("Textractor: triggered: adding dynamic reader"); NewHook(hp, "READ"); - //ret = true; + ret = true; } }; } @@ -15071,7 +15071,7 @@ void SpecialHookLightvn(DWORD, HookParam*, BYTE, DWORD* data, DWORD* split, DWOR const C* start = FindInView(view, "curline:"); const C* end = FindInView(view, "\\w"); if (!end) end = FindInView(view, "(scenario"); - if (end) *split = *end << 16; + //if (end) *split = *end << 16; if (start && end && end > start) { *data = (DWORD)(start + 8);