Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

So I've looked into Harmony and unfortunately I think it wouldn't work with my mod.

Limits of runtime patching

note Harmony can't do everything. Make sure you understand the following:

  • With Harmony, you only manipulate methods. This includes constructors and getters/setters.
  • You can only work with methods that have an actual IL code body, which means that they appear in a dissassembler like dnSpy.
  • Methods that are too small might get inlined and your patches will not run.
  • You cannot add fields to classes and you cannot extend enums (they get compiled into ints).
  • Patching generic methods or methods in generic classes is tricky and might not work as expected.

Some of the limitations here wouldn't allow my mod to function without taking away features.