LavaGang / MelonLoader

The World's First Universal Mod Loader for Unity Games compatible with both Il2Cpp and Mono
https://discord.gg/2Wn3N2P
Apache License 2.0
2.22k stars 458 forks source link

Added a .NET Framework 2.0 Compatibility Layer #653

Closed slxdy closed 3 weeks ago

slxdy commented 1 month ago

Since the 0.6 update, games running on NET2.0 stopped working. I implemented a (backwards) compatibility layer to enable NET2.0 modding again. Tested on Welcome to the Game II

slxdy commented 4 weeks ago

This thought has stuck around with me for a while, but note that I moved the first Harmony instance initializer a bit up, before some fixes are applied. Not sure if this breaks anything, but if it does, I can instead restore the change and give the compatibility layer its own Harmony instance