RpgmXP engine hook

This commit is contained in:
Blu3train 2023-05-04 23:22:22 +02:00
parent f3fbe04409
commit d5aed00427
3 changed files with 23 additions and 0 deletions

View File

@ -21728,6 +21728,24 @@ bool InsertNamcoPS2Hook()
} }
#endif // 0 #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 } // namespace Engine
// EOF // EOF

View File

@ -165,6 +165,7 @@ void InsertRealliveHook(); // RealLive: RealLive*.exe
void InsertStuffScriptHook(); // Stuff: *.mpk void InsertStuffScriptHook(); // Stuff: *.mpk
bool InsertTinkerBellHook(); // TinkerBell: arc00.dat bool InsertTinkerBellHook(); // TinkerBell: arc00.dat
bool InsertWaffleHook(); // WAFFLE: cg.pak bool InsertWaffleHook(); // WAFFLE: cg.pak
bool InsertRpgmXPHook(); // Rpgm XP: *.rgssad
// CIRCUS: avdata/ // CIRCUS: avdata/
bool InsertCircusHook1(); bool InsertCircusHook1();

View File

@ -370,6 +370,10 @@ bool DetermineEngineByFile3()
bool DetermineEngineByFile4() 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 if (Util::CheckFile(L"EAGLS.dll")) { // jichi 3/24/2014: E.A.G.L.S
//ConsoleOutput("vnreng: IGNORE EAGLS"); //ConsoleOutput("vnreng: IGNORE EAGLS");
InsertEaglsHook(); InsertEaglsHook();