Expand description
Generates declaration assemblies (“dummy DLLs”) from Il2Cpp metadata: every type, field, method signature, property and event, with stub method bodies.
Game::write_assemblies does this and
writes the files; call generate() yourself to change the modules first.
use hao_il2cpp::{generate, Game};
let game = Game::open("path/to/game")?;
for assembly in generate(game.metadata(), game.binary())? {
println!("{}: {} types", assembly.file_name, assembly.module.types.len());
assembly.module.write_to_path(format!("out/{}", assembly.file_name))?;
}Structs§
- Generated
Assembly - One generated assembly per Il2Cpp image.
Functions§
- generate
- Builds a declaration assembly for every image in the game. Method bodies are stubs that throw.