mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-25 12:44:13 +08:00
31 lines
866 B
C++
31 lines
866 B
C++
#include"Eagls.h"
|
||
|
||
|
||
/** jichi 7/26/2014: E.A.G.L.S engine for TechArts games (SQUEEZ, May-Be Soft)
|
||
* Sample games: [May-Be Soft] ちぽ<E381A1>んじ<E38293> * Should also work for SQUEEZ's 孕ませシリーズ
|
||
*
|
||
* Two functions calls to GetGlyphOutlineA are responsible for painting.
|
||
* - 0x4094ef
|
||
* - 0x409e35
|
||
* However, by default, one of the thread is like: scenario namename scenario
|
||
* The other thread have infinite loop.
|
||
*/
|
||
bool InsertEaglsHook()
|
||
{
|
||
|
||
// Modify the split for GetGlyphOutlineA
|
||
HookParam hp;
|
||
hp.address = (DWORD)::GetGlyphOutlineA;
|
||
hp.type = CODEC_ANSI_BE|USING_SPLIT; // the only difference is the split value
|
||
hp.offset = get_stack(2);
|
||
hp.split = get_stack(4);
|
||
//hp.split = arg7_lpmat2;
|
||
ConsoleOutput("INSERT EAGLS");
|
||
|
||
return NewHook(hp, "EAGLS");
|
||
}
|
||
|
||
|
||
bool Eagls::attach_function() {
|
||
return InsertEaglsHook();
|
||
}
|