浏览代码

Remove redundant runtime patch

ghorsington 5 年之前
父节点
当前提交
5cc42b582a
共有 1 个文件被更改,包括 0 次插入9 次删除
  1. 0 9
      BepInEx.Preloader/RuntimeFixes/UnityPatches.cs

+ 0 - 9
BepInEx.Preloader/RuntimeFixes/UnityPatches.cs

@@ -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";
-		}
 	}
 }