Merge remote-tracking branch 'Blu3train/CatSystem3newEngine'

This commit is contained in:
Chenx221 2024-09-05 11:31:18 +08:00
commit 71deb00afb

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