more consistent Light.vn hook

This commit is contained in:
Akash Mozumdar 2019-08-29 13:09:31 -04:00
parent d3da9c06e3
commit 590c08e8d0

View File

@ -80,7 +80,7 @@ namespace { // unnamed helpers
hp.address = addr; hp.address = addr;
ConsoleOutput("Textractor: triggered: adding dynamic reader"); ConsoleOutput("Textractor: triggered: adding dynamic reader");
NewHook(hp, "READ"); 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* start = FindInView(view, "curline:");
const C* end = FindInView(view, "\\w"); const C* end = FindInView(view, "\\w");
if (!end) end = FindInView(view, "(scenario"); if (!end) end = FindInView(view, "(scenario");
if (end) *split = *end << 16; //if (end) *split = *end << 16;
if (start && end && end > start) if (start && end && end > start)
{ {
*data = (DWORD)(start + 8); *data = (DWORD)(start + 8);