Explorar el Código

Fix issue with the logger and previous plugins

Bepis hace 6 años
padre
commit
9600be9c22
Se han modificado 1 ficheros con 12 adiciones y 2 borrados
  1. 12 2
      BepInEx/Logger.cs

+ 12 - 2
BepInEx/Logger.cs

@@ -24,10 +24,20 @@ namespace BepInEx
         /// <summary>
         /// Logs an entry to the logger, and any listeners are notified of the entry.
         /// </summary>
+        /// <param name="entry">The text element of the log itself.</param>
+        /// <param name="show">Whether or not it should be dislpayed to the user.</param>
+        public static void Log(string entry, bool show = false)
+        {
+            Log(entry, show, ConsoleColor.Gray);
+        }
+
+        /// <summary>
+        /// Logs an entry to the logger, and any listeners are notified of the entry.
+        /// </summary>
         /// <param name="entry">The text element of the log itself. Uses .ToString().</param>
         /// <param name="show">Whether or not it should be dislpayed to the user.</param>
         /// <param name="color">The color of the text to show in the console.</param>
-        public static void Log(object entry, bool show = false, ConsoleColor color = ConsoleColor.Gray)
+        public static void Log(object entry, bool show, ConsoleColor color)
         {
             Log(entry.ToString(), show, color);
         }
@@ -38,7 +48,7 @@ namespace BepInEx
         /// <param name="entry">The text element of the log itself.</param>
         /// <param name="show">Whether or not it should be dislpayed to the user.</param>
         /// <param name="color">The color of the text to show in the console.</param>
-        public static void Log(string entry, bool show = false, ConsoleColor color = ConsoleColor.Gray)
+        public static void Log(string entry, bool show, ConsoleColor color)
         {
             UnityEngine.UnityLogWriter.WriteStringToUnityLog($"BEPIN - {entry}\r\n");