11
This commit is contained in:
@@ -34,6 +34,17 @@ void hook::H_Register_Pack(void* Ecx)
|
||||
sock::R_Register_Pack();
|
||||
}
|
||||
|
||||
|
||||
//Hook文字
|
||||
#ifdef CODEDRAW
|
||||
extern struct CodeDrawObj
|
||||
{
|
||||
int Color;
|
||||
std::string str;
|
||||
};
|
||||
extern std::map< std::string, CodeDrawObj>CodeDrawMap;
|
||||
#endif
|
||||
|
||||
//HOOK绘制字体
|
||||
void _fastcall hook::H_Register_DrawCode(DWORD thisc, int Seat, int a3, int a4, int a5, int a6)
|
||||
{
|
||||
@@ -47,7 +58,20 @@ void _fastcall hook::H_Register_DrawCode(DWORD thisc, int Seat, int a3, int a4,
|
||||
std::string GameStr;
|
||||
DNFTOOL::Wchar_tToString(GameStr, clone);
|
||||
delete[]clone;
|
||||
|
||||
//std::cout << GameStr << std::endl;
|
||||
//Hook文字
|
||||
#ifdef CODEDRAW
|
||||
if (CodeDrawMap.count(GameStr) == 1)
|
||||
{
|
||||
wchar_t* str = DNFTOOL::char2wchar(CodeDrawMap[GameStr].str.c_str());
|
||||
DrawCodeF(thisc, Seat, a3, a4, CodeDrawMap[GameStr].Color, (int)str);
|
||||
delete[]str;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
//Hook游戏设置窗口CallBack ui/optionwindow
|
||||
#ifdef SETTINGWINDOWS
|
||||
if (GameStr.find("倾泪寒自定义设置") != std::string::npos)
|
||||
@@ -702,8 +726,8 @@ int hook::RegisterHook()
|
||||
|
||||
#ifdef DRAWITEM
|
||||
//HOOK Item绘制
|
||||
MH_CreateHook((void*)0x7AA800, &newsub7AA800, reinterpret_cast<void**>(&sub7AA800));
|
||||
MH_EnableHook((void*)0x7AA800);
|
||||
//MH_CreateHook((void*)0x7AA800, &newsub7AA800, reinterpret_cast<void**>(&sub7AA800));
|
||||
//MH_EnableHook((void*)0x7AA800);
|
||||
#endif
|
||||
|
||||
#ifdef GET_EXE_STR
|
||||
@@ -712,6 +736,11 @@ int hook::RegisterHook()
|
||||
MH_EnableHook((void*)0x1220590);
|
||||
#endif
|
||||
|
||||
#ifdef HOOKDRAWITEM
|
||||
MH_CreateHook((void*)0x11A8F60, &newsub11A8F60, reinterpret_cast<void**>(&sub11A8F60));
|
||||
MH_EnableHook((void*)0x11A8F60);
|
||||
#endif // HOOKDRAWITEM
|
||||
|
||||
//获取坐标
|
||||
//MH_CreateHook((void*)0x48c690, &NewGetItemPos, reinterpret_cast<void**>(&GetItemPos));
|
||||
//MH_EnableHook((void*)0x48c690);
|
||||
@@ -745,9 +774,6 @@ int hook::RegisterHook()
|
||||
//MH_CreateHook((void*)0x1358A60, &NewSqPushStringFunc, reinterpret_cast<void**>(&OldSQPushString));
|
||||
//MH_EnableHook((void*)0x1358A60);
|
||||
|
||||
//MH_CreateHook((void*)0x11A8F60, &newsub11A8F60, reinterpret_cast<void**>(&sub11A8F60));
|
||||
//MH_EnableHook((void*)0x11A8F60);
|
||||
|
||||
|
||||
// HOOK exe 调用文本进 松鼠虚拟机
|
||||
//MH_CreateHook((void*)0x135B2C0, &NewSQ_Compilebuffer, reinterpret_cast<void**>(&OldSQ_Compilebuffer));
|
||||
|
||||
Reference in New Issue
Block a user