From 166c9681e40201df04d1a29ae6e835b832c0cc37 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Wed, 29 Aug 2018 17:15:35 -0400 Subject: [PATCH] bugfix pal hook --- vnrhook/engine/engine.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vnrhook/engine/engine.cc b/vnrhook/engine/engine.cc index 73e482d..446059f 100644 --- a/vnrhook/engine/engine.cc +++ b/vnrhook/engine/engine.cc @@ -12465,6 +12465,8 @@ static bool InsertNewPal1Hook() HookParam hp = {}; hp.address = addr; hp.offset = 4 * 2; // arg2 + hp.length_offset = 0; + hp.type = USING_STRING; ConsoleOutput("vnreng: INSERT Pal1"); NewHook(hp, "Pal"); return true; @@ -12492,6 +12494,8 @@ static bool InsertNewPal2Hook() HookParam hp = {}; hp.address = addr; hp.offset = 4 * 2; // arg2 + hp.length_offset = 0; + hp.type = USING_STRING; ConsoleOutput("vnreng: INSERT Pal2"); NewHook(hp, "Pal"); return true;