fix artemis hook

This commit is contained in:
Akash Mozumdar 2019-03-19 04:42:04 -04:00
parent 21fd3e1d59
commit f53950581a

View File

@ -10436,8 +10436,9 @@ bool InsertArtemis2Hook()
// Artikash 1/1/2019: Recent games seem to use utf8 encoding instead, other than that the hook is identical. // Artikash 1/1/2019: Recent games seem to use utf8 encoding instead, other than that the hook is identical.
// Not sure how to differentiate which games are sjis/utf8 so insert both // Not sure how to differentiate which games are sjis/utf8 so insert both
hp.address = addr + 6; hp.address = addr + 6;
hp.offset = 8; // ebp was also pushed hp.offset = pusha_ebp_off - 4;
hp.type = USING_UTF8 | USING_STRING | NO_CONTEXT; hp.index = 8; // ebp was also pushed
hp.type = USING_UTF8 | USING_STRING | DATA_INDIRECT | NO_CONTEXT;
NewHook(hp, "Artemis2"); NewHook(hp, "Artemis2");
//ConsoleOutput("Artemis2"); //ConsoleOutput("Artemis2");
return true; return true;