mirror of
https://github.com/Artikash/Textractor.git
synced 2024-12-24 01:14:12 +08:00
added new mono hook (probably just works on bsz though)
This commit is contained in:
parent
728c7a798b
commit
53cf099bc6
@ -2095,6 +2095,26 @@ bool InsertBGI3Hook()
|
|||||||
bool InsertBGIHook()
|
bool InsertBGIHook()
|
||||||
{ return InsertBGI2Hook() || InsertBGI1Hook(); }
|
{ return InsertBGI2Hook() || InsertBGI1Hook(); }
|
||||||
|
|
||||||
|
// Artikash 8/28/2018: reimplement baldr sky zero hook. see ok123's post https://web.archive.org/web/20140815231753/http://9gal.com/read.php?tid=411756
|
||||||
|
bool InsertBaldrHook()
|
||||||
|
{
|
||||||
|
const BYTE ins[] = { 0x90,0xff,0x50,0x3c,0x83,0xc4,0x20,0x8b,0x45,0xec };
|
||||||
|
DWORD addr = Util::SearchMemory(ins, sizeof(ins));
|
||||||
|
if (!addr) {
|
||||||
|
ConsoleOutput("NextHooker: BALDR failed: could not find instructions");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
HookParam hp = {};
|
||||||
|
hp.address = addr;
|
||||||
|
hp.offset = 4;
|
||||||
|
hp.type = NO_CONTEXT | USING_STRING | USING_UNICODE; // 0x403
|
||||||
|
ConsoleOutput("NextHooker: INSERT BALDR");
|
||||||
|
NewHook(hp, "BALDR");
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
/********************************************************************************************
|
/********************************************************************************************
|
||||||
Reallive hook:
|
Reallive hook:
|
||||||
Process name is reallive.exe or reallive*.exe.
|
Process name is reallive.exe or reallive*.exe.
|
||||||
@ -16454,6 +16474,7 @@ bool InsertMonoHooks()
|
|||||||
if (!h)
|
if (!h)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
InsertBaldrHook(); //Artikash 8/28/2018: insert for all mono games: maybe itll work for more than baldr sky zero?
|
||||||
bool ret = false;
|
bool ret = false;
|
||||||
|
|
||||||
// mono_unichar2* mono_string_to_utf16 (MonoString *s);
|
// mono_unichar2* mono_string_to_utf16 (MonoString *s);
|
||||||
|
@ -91,6 +91,7 @@ bool InsertApricoTHook(); // Apricot: arc.a*
|
|||||||
bool InsertArtemisHook(); // Artemis Engine: *.pfs
|
bool InsertArtemisHook(); // Artemis Engine: *.pfs
|
||||||
bool InsertAtelierHook(); // Atelier Kaguya: message.dat
|
bool InsertAtelierHook(); // Atelier Kaguya: message.dat
|
||||||
bool InsertBGIHook(); // BGI: BGI.*
|
bool InsertBGIHook(); // BGI: BGI.*
|
||||||
|
bool InsertBaldrHook(); // Baldr Sky "Zero"
|
||||||
bool InsertBootupHook(); // Bootup: Bootup.dat
|
bool InsertBootupHook(); // Bootup: Bootup.dat
|
||||||
bool InsertC4Hook(); // C4: C4.EXE or XEX.EXE
|
bool InsertC4Hook(); // C4: C4.EXE or XEX.EXE
|
||||||
bool InsertCaramelBoxHook(); // Caramel: *.bin
|
bool InsertCaramelBoxHook(); // Caramel: *.bin
|
||||||
|
Loading…
x
Reference in New Issue
Block a user