恍兮惚兮 f2315a7884 .
2024-12-09 21:06:21 +08:00

20 lines
493 B
C++

#include "T2U.h"
bool T2U::attach_function()
{
//(18禁ゲーム)[000128][BLUE GALE] Treating2U (bin+cue)
HookParam hp;
hp.address = (DWORD)TextOutA; // 这个游戏设置embed_hook_font会卡死
hp.type = USING_STRING;
hp.offset = stackoffset(4);
hp.filter_fun = [](TextBuffer *buffer, HookParam *hp)
{
static lru_cache<std::string> cache(5);
auto s = buffer->strA();
if (cache.touch(s))
{
return buffer->clear();
}
};
return NewHook(hp, "T2U");
}