Skip to main content

on_init

Function on_init 

Source
pub fn on_init(
    callback: impl FnOnce(&'static Il2Cpp) -> Result<(), Error> + Send + 'static,
)
Expand description

Runs callback once il2cpp_init has finished, or straight away if it already has.

The mod has to be loaded before the game binary initialises Il2Cpp, which LD_PRELOAD guarantees. Errors are printed to stderr.