Mod that comes with Harmony 2.0 dll (compiled from master)
Both mods are really simple, using PatchAll and UnpatchAll when they are enabled/disabled.
When the game loads and all mods are disabled, I can enable and disable the 1.2 mod without any Errors.
But as soon as I enable 2.0 mod (that's probably the moment when harmony patches ists older sibling), I can no longer disable the 1.2 mod without errors.
This happens to all Harmony 1.2 mods I've tested (3 different mods).
The mod that was compiled with Harmony 2.0 can be enabled and disabled at any time.
Describe the bug
I have 2 Cities: Skylines mods:
Both mods are really simple, using
PatchAll
andUnpatchAll
when they are enabled/disabled.When the game loads and all mods are disabled, I can enable and disable the 1.2 mod without any Errors.
But as soon as I enable 2.0 mod (that's probably the moment when harmony patches ists older sibling), I can no longer disable the 1.2 mod without errors.
This happens to all Harmony 1.2 mods I've tested (3 different mods).
The mod that was compiled with Harmony 2.0 can be enabled and disabled at any time.
To Reproduce
Sample Code of a mod: https://gist.github.com/boformer/d7e7bf2af33f4515352f17fcc19443d0
Harmony log (1.2-only and mixed 2.0 and 1.2, where 2.0 was enabled first): https://gist.github.com/boformer/e15c2bb9a47382251c76983fd48984d0
The error in
UnpatchAll
:Runtime environment (please complete the following information):