forked from Public-Mirror/Textractor
update scenarioplayer hook
This commit is contained in:
parent
f1a2beef4f
commit
715bf9feaa
@ -11355,18 +11355,23 @@ bool InsertScenarioPlayerHook()
|
|||||||
}
|
}
|
||||||
|
|
||||||
HookParam hp = {};
|
HookParam hp = {};
|
||||||
hp.address = addr;
|
//hp.address = addr;
|
||||||
hp.length_offset = 1;
|
hp.length_offset = 1;
|
||||||
hp.offset = 4;
|
hp.offset = 4;
|
||||||
if (addr - start == addr_offset_W) {
|
//if (addr - start == addr_offset_W) {
|
||||||
|
// Artikash 8/18/2018: can't figure out how to tell apart which hook is needed, so just insert both xD
|
||||||
|
HookParam hp2 = hp;
|
||||||
|
|
||||||
hp.type = USING_UNICODE;
|
hp.type = USING_UNICODE;
|
||||||
|
hp.address = addr;
|
||||||
ConsoleOutput("vnreng: INSERT ScenarioPlayerW");
|
ConsoleOutput("vnreng: INSERT ScenarioPlayerW");
|
||||||
NewHook(hp, "ScenarioPlayerW");
|
NewHook(hp, "ScenarioPlayerW");
|
||||||
} else {
|
//} else {
|
||||||
hp.type = BIG_ENDIAN; // 4
|
hp2.type = BIG_ENDIAN; // 4
|
||||||
|
hp2.address = addr + 5;
|
||||||
ConsoleOutput("vnreng: INSERT ScenarioPlayerA");
|
ConsoleOutput("vnreng: INSERT ScenarioPlayerA");
|
||||||
NewHook(hp, "ScenarioPlayerA");
|
NewHook(hp2, "ScenarioPlayerA");
|
||||||
}
|
//}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user