BepInEx / Il2CppInterop

A tool interoperate between CoreCLR and Il2Cpp at runtime
GNU Lesser General Public License v3.0
185 stars 59 forks source link

fixed deobfuscation map generation #88

Open CamelCaseName opened 1 year ago

CamelCaseName commented 1 year ago

This is more or less a hand merge of my commits to my branch of unhollower, but since that one is dead I want to contribute them here. I have confirmed it working for House Party, as I have unobfuscated versions available for that game. The current Il2CppInterop produces 1 (one) method mapping in the csv, the old Unhollower just crashed outright. The adjusted versions both produce 762 in the chosen House Party version. This change should not at all affect normal operations of the Interop stuff, it completely resides in the Generator project and fixes an old //Todo set out by knah.

See the changes in the Unhollower PR for more info, can also provide example maps on request.

I'd be happy for anyone to test this change with other obfuscated games. (for house party you can try version 0.21 and version 0.23 for example, somewhere in that timeframe they enabled obfuscation)