Exemplo n.º 1
0
        private static void OnActorEndPlay(IntPtr address, byte endPlayReason)
        {
            UObject obj = GCHelper.Find(address);

            ActorEndPlayDel_ThisCall original = actorEndPlay.GetOriginal <ActorEndPlayDel_ThisCall>(obj);

            original(address, endPlayReason);
            //Native_VTableHacks.CallOriginal_ActorEndPlay(original, address, endPlayReason);

            obj.EndPlayInternal(endPlayReason);
        }
Exemplo n.º 2
0
        private static void OnActorEndPlay(IntPtr address, byte endPlayReason)
        {
            try
            {
                UObject obj = GCHelper.Find(address);

                ActorEndPlayDel_ThisCall original = actorEndPlay.GetOriginal <ActorEndPlayDel_ThisCall>(obj);
                original(address, endPlayReason);
                //Native_VTableHacks.CallOriginal_ActorEndPlay(original, address, endPlayReason);

                obj.EndPlayInternal(endPlayReason);
            }
            catch (Exception e)
            {
                LogCallbackException(nameof(OnActorEndPlay), e);
            }
        }