Exemple #1
0
        private static void OnSetupPlayerInputComponent(IntPtr address, IntPtr inputComponentAddress)
        {
            UObject obj = GCHelper.Find(address);

            SetupPlayerInputComponentDel_ThisCall original = setupPlayerInput.GetOriginal <SetupPlayerInputComponentDel_ThisCall>(obj);

            original(address, inputComponentAddress);
            //Native_VTableHacks.CallOriginal_SetupPlayerInputComponent(original, address, inputComponentAddress);

            obj.SetupPlayerInputComponent(inputComponentAddress);
        }
Exemple #2
0
        private static void OnSetupPlayerInputComponent(IntPtr address, IntPtr inputComponentAddress)
        {
            try
            {
                UObject obj = GCHelper.Find(address);

                SetupPlayerInputComponentDel_ThisCall original = setupPlayerInput.GetOriginal <SetupPlayerInputComponentDel_ThisCall>(obj);
                original(address, inputComponentAddress);
                //Native_VTableHacks.CallOriginal_SetupPlayerInputComponent(original, address, inputComponentAddress);

                obj.SetupPlayerInputComponent(inputComponentAddress);
            }
            catch (Exception e)
            {
                LogCallbackException(nameof(OnSetupPlayerInputComponent), e);
            }
        }