pub fn on_init(
callback: impl FnOnce(&'static Il2Cpp) -> Result<()> + Send + 'static,
)Available on Unix only.
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.