RpgmXP engine hook
This commit is contained in:
parent
f3fbe04409
commit
d5aed00427
@ -21728,6 +21728,24 @@ bool InsertNamcoPS2Hook()
|
||||
}
|
||||
#endif // 0
|
||||
|
||||
bool InsertRpgmXPHook()
|
||||
{
|
||||
//by Blu3train
|
||||
HookParam hp = {};
|
||||
wcsncpy_s(hp.module, L"gdi32.dll", MAX_MODULE_SIZE - 1);
|
||||
strncpy_s(hp.function, "GetGlyphOutlineW", MAX_MODULE_SIZE - 1);
|
||||
hp.address = 0;
|
||||
hp.offset = 0x8; //arg2
|
||||
hp.index = 0;
|
||||
hp.split = pusha_esi_off - 4;
|
||||
hp.split_index = 0;
|
||||
hp.type = USING_UNICODE | USING_SPLIT | MODULE_OFFSET | FUNCTION_OFFSET;
|
||||
hp.length_offset = 1;
|
||||
ConsoleOutput("vnreng: INSERT RpgmXP");
|
||||
NewHook(hp, "RpgmXP");
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace Engine
|
||||
|
||||
// EOF
|
||||
|
@ -165,6 +165,7 @@ void InsertRealliveHook(); // RealLive: RealLive*.exe
|
||||
void InsertStuffScriptHook(); // Stuff: *.mpk
|
||||
bool InsertTinkerBellHook(); // TinkerBell: arc00.dat
|
||||
bool InsertWaffleHook(); // WAFFLE: cg.pak
|
||||
bool InsertRpgmXPHook(); // Rpgm XP: *.rgssad
|
||||
|
||||
// CIRCUS: avdata/
|
||||
bool InsertCircusHook1();
|
||||
|
@ -370,6 +370,10 @@ bool DetermineEngineByFile3()
|
||||
|
||||
bool DetermineEngineByFile4()
|
||||
{
|
||||
if (Util::CheckFile(L"*.rgssad")) {
|
||||
if (InsertRpgmXPHook())
|
||||
return true;
|
||||
}
|
||||
if (Util::CheckFile(L"EAGLS.dll")) { // jichi 3/24/2014: E.A.G.L.S
|
||||
//ConsoleOutput("vnreng: IGNORE EAGLS");
|
||||
InsertEaglsHook();
|
||||
|
Loading…
x
Reference in New Issue
Block a user