CatSystem3new engine. Split furigana from sentence

This commit is contained in:
Blu3train 2023-04-17 22:36:13 +02:00
parent 233e75225c
commit 91a52caa99

View File

@ -6573,9 +6573,13 @@ bool InsertCatSystemHook()
// jichi 12/23/2014: Modify split for new catsystem // jichi 12/23/2014: Modify split for new catsystem
bool newEngine = Util::CheckFile(L"cs2conf.dll"); bool newEngine = Util::CheckFile(L"cs2conf.dll");
if (newEngine) { if (newEngine) {
hp.text_fun = SpecialHookCatSystem3; // type not needed //hp.text_fun = SpecialHookCatSystem3; // type not needed
NewHook(hp, "CatSystem3"); //NewHook(hp, "CatSystem3");
ConsoleOutput("vnreng: INSERT CatSystem3"); //ConsoleOutput("vnreng: INSERT CatSystem3");
hp.type = BIG_ENDIAN|USING_SPLIT;
hp.split = pusha_esi_off - 4;
NewHook(hp, "CatSystem3new");
ConsoleOutput("vnreng: INSERT CatSystem3new");
} else { } else {
hp.type = BIG_ENDIAN|USING_SPLIT; hp.type = BIG_ENDIAN|USING_SPLIT;
hp.split = pusha_edx_off - 4; // -0x10 hp.split = pusha_edx_off - 4; // -0x10