bugfix pal hook

This commit is contained in:
Akash Mozumdar 2018-08-29 17:15:35 -04:00
parent 53cf099bc6
commit 166c9681e4

View File

@ -12465,6 +12465,8 @@ static bool InsertNewPal1Hook()
HookParam hp = {}; HookParam hp = {};
hp.address = addr; hp.address = addr;
hp.offset = 4 * 2; // arg2 hp.offset = 4 * 2; // arg2
hp.length_offset = 0;
hp.type = USING_STRING;
ConsoleOutput("vnreng: INSERT Pal1"); ConsoleOutput("vnreng: INSERT Pal1");
NewHook(hp, "Pal"); NewHook(hp, "Pal");
return true; return true;
@ -12492,6 +12494,8 @@ static bool InsertNewPal2Hook()
HookParam hp = {}; HookParam hp = {};
hp.address = addr; hp.address = addr;
hp.offset = 4 * 2; // arg2 hp.offset = 4 * 2; // arg2
hp.length_offset = 0;
hp.type = USING_STRING;
ConsoleOutput("vnreng: INSERT Pal2"); ConsoleOutput("vnreng: INSERT Pal2");
NewHook(hp, "Pal"); NewHook(hp, "Pal");
return true; return true;