恍兮惚兮 17d0a7a84c issues/30
2024-05-09 15:51:08 +08:00

12 lines
376 B
C++

#include"mirage.h"
bool mirage::attach_function() {
//[031219][mirage] そこに海があって
ULONG addr = MemDbg::findCallerAddress((DWORD)TextOutA,0x90909090,processStartAddress,processStopAddress);
if (!addr) return false;
HookParam hp;
hp.address = addr+4;
hp.offset=get_stack(1);
hp.type = DATA_INDIRECT|USING_CHAR;
return NewHook(hp, "mirage");
}