From 42546e5215eca2e28b347d353c40282f9f491a4f Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Thu, 16 Aug 2018 21:05:32 -0400 Subject: [PATCH] update hook --- vnrhook/src/engine/engine.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnrhook/src/engine/engine.cc b/vnrhook/src/engine/engine.cc index 969924b..ae89b92 100644 --- a/vnrhook/src/engine/engine.cc +++ b/vnrhook/src/engine/engine.cc @@ -16440,7 +16440,7 @@ bool InsertAdobeFlash10Hook() * Sample games: https://vndb.org/v19843 https://vndb.org/v12038 and many more OELVNs * * Uses CPython, and links to python27.dll. PyUicodeUCS2_Format is the function used to process text. -* eax points to string class. offset 0xc from that is a wchar_t* to the actual string +* first value on stack is pointer to string class. offset 0xc from that is a wchar_t* to the actual string * ebx seems to work well as the split param, not sure why */ bool InsertRenpyHook() @@ -16452,7 +16452,7 @@ bool InsertRenpyHook() ConsoleOutput("NextHooker: Ren'py failed: failed to find python27.dll or PyUnicodeUCS2_Format"); return false; } - hp.offset = pusha_eax_off - 4; + hp.offset = 4; hp.index = 0xc; hp.length_offset = 0; hp.split = pusha_ebx_off - 4;