r/ReverseEngineering • u/deutschedinge • 1d ago
Il2CppStudio – Open-source, pure-C# all-in-one decompiler that lifts Unity IL2CPP binaries directly into compilable C# code
https://github.com/ningengit/il2cppStudio
30
Upvotes
View all comments
1
u/deutschedinge 17h ago edited 17h ago
Also, after building Il2CppStudio, I wanted to tackle the modding side of Unity games without the usual repeated pieces of code with Harmony attributes, manual IL transpilers, or juggling separate tools for code and asset replacement—so I built EasyModMaker (MIT license).
The goal is a single, fluent C# API that works across both Mono and IL2CPP in an easy-to-understand way:
"
using var patcher = Patcher.Open(@"C:\Path\To\Game\base");
patcher.RunAtGameStart(() => PaeLog.Info("Mod loaded!"));
patcher.Method<SomeGameClass>("SomeMethod")
.AddBeforeRun((self, args) => { /* inspect or modify args */ })
.SetStringInMethod("Old text", "New text");
patcher.Save(@"C:\Path\To\Game_modded_signed.apk");
"
It handles stub generation, global-metadata.dat patching, asset/media replacement, and signed APK repackaging out of the box. I added Android IL2CPP support first since getting a clean C# pipeline on mobile is usually a pain, with Windows and Linux support coming next.
The repo is here btw: https://github.com/ningengit/EasyModMaker — would love feedback if anyone tries it out! should also say it is new and not as mature as bepinex