Browse Source

Disallow legacy global UnpatchAll

pull/75/head
Eris 2 years ago
parent
commit
8145d5342d
2 changed files with 2 additions and 5 deletions
  1. +2
    -1
      IPA.Loader/Loader/HarmonyProtector.cs
  2. +0
    -4
      IPA.Loader/Loader/PluginLoader.cs

+ 2
- 1
IPA.Loader/Loader/HarmonyProtector.cs View File

@ -1,5 +1,4 @@
using HarmonyLib; using HarmonyLib;
using System.Collections.Generic;
using System.Reflection; using System.Reflection;
namespace IPA.Loader namespace IPA.Loader
@ -17,6 +16,8 @@ namespace IPA.Loader
public static void Protect(Harmony inst = null) public static void Protect(Harmony inst = null)
{ {
HarmonyGlobalSettings.DisallowLegacyGlobalUnpatchAll = true;
selfAssem = Assembly.GetExecutingAssembly(); selfAssem = Assembly.GetExecutingAssembly();
harmonyAssem = typeof(Harmony).Assembly; harmonyAssem = typeof(Harmony).Assembly;


+ 0
- 4
IPA.Loader/Loader/PluginLoader.cs View File

@ -11,11 +11,7 @@ using System.IO;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;
using System.Text.RegularExpressions; using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Version = SemVer.Version;
using SemVer;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using HarmonyLib;
using System.Diagnostics; using System.Diagnostics;
using IPA.AntiMalware; using IPA.AntiMalware;
using Hive.Versioning; using Hive.Versioning;


Loading…
Cancel
Save