private static void OnSetupPlayerInputComponent(IntPtr address, IntPtr inputComponentAddress) { UObject obj = GCHelper.Find(address); IntPtr original = setupPlayerInput.GetOriginal(obj); Native_VTableHacks.CallOriginal_SetupPlayerInputComponent(original, address, inputComponentAddress); obj.SetupPlayerInputComponent(inputComponentAddress); }
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); } }