LighterPatcher is an adaptation of @xiaoxiao921's LighterHook. It aims to reduce the weight of MonoMod RuntimeDetour's generated MMHook file as a BepInEx patcher.
MMHOOK_Assembly-CSharp.dll
sometimes makes games slow. This patcher makes MMHOOK_Assembly-CSharp the smallest it can be.
Patcher make make computer go faster.
Put the LighterPatcher.dll
into BepInEx\Patchers
folder.
MMHOOK_Assembly-Csharp
contains a lot of extranous types that take a lot of processing power to handle, this patcher strips all types that aren't required by any plugins.
The process to do so is as follows:
BepInEx\Plugins
folder, and when that finds a mod with a reference to MMHOOK_Assembly-CSharp.dll
, scan all methods of that dll for references to On.*
and IL.*
.MMHOOK_Assembly-CSharp.dll
to MMHOOK_Assembly-CSharp.dll.backup
.1.0.5
Windows10CE
.IL
namespace.1.0.4
1.0.3
On
and IL
namespace, as we have not done any scanning for dependencies on such types. Additionally, such types may be used as markers by other modifications. Like BepInEx.MonoMod.HookGenPatcher.1.0.2
1.0.1
1.0.0