mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Remove redundant runtime patch
This commit is contained in:
1 parent
b1bfbcdebe
commit
5cc42b582a
1 file changed
-9
@@ -39,14 +39,5 @@ namespace BepInEx.Preloader.RuntimeFixes
|
||||
if (AssemblyLocations.TryGetValue(__instance.FullName, out string location))
|
||||
__result = $"file://{location.Replace('\\', '/')}";
|
||||
}
|
||||
|
||||
[HarmonyPostfix, HarmonyPatch(typeof(AppDomain), nameof(AppDomain.SetupInformation), MethodType.Getter)]
|
||||
public static void GetExeConfigName(AppDomainSetup __result)
|
||||
{
|
||||
if (!Preloader.IsDotNet46)
|
||||
return;
|
||||
__result.ApplicationBase = $"file://{Paths.GameRootPath}";
|
||||
__result.ConfigurationFile = "app.config";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user