Closed oobbb closed 1 year ago
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
Try without the & for the old function
&
@oobbb, HOOK automatically add & to old method. Use it without &.
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