Skip to content

Commit

Permalink
Don't auto apply harmony patches for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
cheese3660 committed Jan 12, 2024
1 parent 430dff3 commit 76f0bb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SpaceWarp.Core/Modules/ModuleManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ internal static void LoadAllModules()
AllSpaceWarpModules.Add(mod);
}

Harmony.CreateAndPatchAll(assembly);
// Harmony.CreateAndPatchAll(assembly);
}
catch (Exception e)
{
Expand Down
4 changes: 3 additions & 1 deletion src/SpaceWarp.UI/Modules/UI.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using JetBrains.Annotations;
using HarmonyLib;
using JetBrains.Annotations;
using SpaceWarp.API.Assets;
using SpaceWarp.API.Configuration;
using SpaceWarp.API.UI.Appbar;
Expand Down Expand Up @@ -74,6 +75,7 @@ public override void LoadModule()
"Show Warning for Errored Mods", true,
"Whether or not Space Warp should display a warning in main menu if there are errored mods"));
BepInEx.Logging.Logger.Listeners.Add(new SpaceWarpConsoleLogListener(this));
Harmony.CreateAndPatchAll(GetType().Assembly);
}

/// <inheritdoc/>
Expand Down

0 comments on commit 76f0bb1

Please sign in to comment.