UE4SS-RE / RE-UE4SS

Injectable LUA scripting system, SDK generator, live property editor and other dumping utilities for UE4/5 games
http://docs.ue4ss.com/
MIT License
1.37k stars 187 forks source link

fix: RegisterProcessConsoleExecPostHook not passing the correct number of params to call_function #631

Closed UE4SS closed 3 months ago

UE4SS commented 3 months ago

Description

The RegisterProcessConsoleExecPostHook function was broken and unusable. This was because we were passing the wrong number of params to call_function causing it to attempt to call a value that wasn't a function.

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Use RegisterProcessConsoleExecPostHook in a Lua script, enable the console enabler mod and type anything in the console and there's no longer an error outputted to the UE4SS console.

Checklist

github-actions[bot] commented 3 months ago
MSVC-Game__Debug__Win64 Download Logs
Build Details |Name|Information| |---|---| |PR Commit|4974877fba09c534eb2d179b7a8651380ac38919| |Merge Commit|1de8df287c028b2b3138f8be50b6ad7f618f0e20| |Size|42.65 MB| |Last Updated|Aug 24, 24, 10:41:50 AM UTC| |Expires At|Sep 7, 24, 10:41:46 AM UTC|

MSVC-Game__Shipping__Win64 Download Logs
Build Details |Name|Information| |---|---| |PR Commit|4974877fba09c534eb2d179b7a8651380ac38919| |Merge Commit|1de8df287c028b2b3138f8be50b6ad7f618f0e20| |Size|25.63 MB| |Last Updated|Aug 24, 24, 10:46:21 AM UTC| |Expires At|Sep 7, 24, 10:46:18 AM UTC|