Kaynağa Gözat

Edit more config sections

Bepis 6 yıl önce
ebeveyn
işleme
f8fe0c58e5

+ 1 - 1
BepInEx/Bootstrap/AssemblyPatcher.cs

@@ -22,7 +22,7 @@ namespace BepInEx.Bootstrap
 		/// <summary>
 		/// Configuration value of whether assembly dumping is enabled or not.
 		/// </summary>
-        private static bool DumpingEnabled => bool.TryParse(Config.GetEntry("preloader-dumpassemblies", "false"), out bool result) ? result : false;
+        private static bool DumpingEnabled => Utility.SafeParseBool(Config.GetEntry("dump-assemblies", "false", "Preloader"));
 
         /// <summary>
         /// Patches and loads an entire directory of assemblies.

+ 1 - 1
BepInEx/Bootstrap/Chainloader.cs

@@ -52,7 +52,7 @@ namespace BepInEx.Bootstrap
 
 				Logger.SetLogger(unityLogWriter);
 
-				if (bool.Parse(Config.GetEntry("log-unity-messages", "false", "Global")))
+				if (bool.Parse(Config.GetEntry("chainloader-log-unity-messages", "false", "BepInEx")))
 					UnityLogWriter.ListenUnityLogs();
 
 				var productNameProp = typeof(Application).GetProperty("productName", BindingFlags.Public | BindingFlags.Static);

+ 1 - 1
BepInEx/Logging/BaseLogger.cs

@@ -42,7 +42,7 @@ namespace BepInEx.Logging
 
 		    try
 		    {
-			    lowest = (LogLevel)Enum.Parse(typeof(LogLevel), Config.GetEntry("logger-displayed-levels", nameof(LogLevel.Info)));
+			    lowest = (LogLevel)Enum.Parse(typeof(LogLevel), Config.GetEntry("logger-displayed-levels", nameof(LogLevel.Info), "BepInEx"));
 		    }
 		    catch
 		    {