Help! How to hook classes with : such as battleperformancecommandcard: basemonobehavior

noobbb

Platinian
我现在是这样写的

auto bsvtd = LoadClass("", "BattlePerformanceCommandCard:BaseMonoBehaviour");
HOOK(bsvtd.GetMethodOffsetByName("updateCardMag", 0), fp, &old_fp);
HOOK(bsvtd.GetMethodOffsetByName("GetBaseCommandCard", 0), up, &old_up);

但是会导致游戏卡顿
请帮我
 
This is how I write it now

auto bsvtd = LoadClass("", "BattlePerformanceCommandCard:BaseMonoBehaviour");
HOOK(bsvtd.GetMethodOffsetByName("updateCardMag", 0), fp, &old_fp);
HOOK(bsvtd.GetMethodOffsetByName("GetBaseCommandCard", 0), up, &old_up);

But it will cause the game to jam
Please help me
 
Back
Top Bottom