Added a hook to the RTTIRegistrator constructor to add callback functions that are called before the final.redscripts is loaded, allowing for new native methods to be defined in RED4ext and called from Redscript.
RTTIRegistrator::Add() can be called immediately after the dll attaches:
Added a hook to the
RTTIRegistrator
constructor to add callback functions that are called before thefinal.redscripts
is loaded, allowing for new native methods to be defined in RED4ext and called from Redscript.RTTIRegistrator::Add()
can be called immediately after the dll attaches:Also fleshed out one of the unknown chunks in the
CBaseFunction
class: aDataBuffer
to the compiled redscript bytecode