private static void OnActorEndPlay(IntPtr address, byte endPlayReason) { UObject obj = GCHelper.Find(address); IntPtr original = actorEndPlay.GetOriginal(obj); Native_VTableHacks.CallOriginal_ActorEndPlay(original, address, endPlayReason); obj.EndPlayInternal(endPlayReason); }
private static void OnActorComponentEndPlay(IntPtr address, byte endPlayReason) { UObject obj = GCHelper.Find(address); ActorComponentEndPlayDel_ThisCall original = actorComponentEndPlay.GetOriginal <ActorComponentEndPlayDel_ThisCall>(obj); original(address, endPlayReason); //Native_VTableHacks.CallOriginal_ActorComponentEndPlay(original, obj.EndPlayInternal(endPlayReason); }
private static void OnActorComponentEndPlay(IntPtr address, byte endPlayReason) { try { UObject obj = GCHelper.Find(address); obj.EndPlayInternal(endPlayReason); } catch (Exception e) { LogCallbackException(nameof(OnActorComponentEndPlay), e); } }
private static void OnActorComponentEndPlay(IntPtr address, byte endPlayReason) { try { UObject obj = GCHelper.Find(address); ActorComponentEndPlayDel_ThisCall original = actorComponentEndPlay.GetOriginal <ActorComponentEndPlayDel_ThisCall>(obj); original(address, endPlayReason); //Native_VTableHacks.CallOriginal_ActorComponentEndPlay(original, obj.EndPlayInternal(endPlayReason); } catch (Exception e) { LogCallbackException(nameof(OnActorComponentEndPlay), e); } }