|
@@ -1,5 +1,6 @@
|
|
|
using System;
|
|
|
using System.Runtime.CompilerServices;
|
|
|
+using BepInEx.ConsoleUtil;
|
|
|
|
|
|
namespace BepInEx
|
|
|
{
|
|
@@ -23,12 +24,25 @@ namespace BepInEx
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ public static void Log(object entry, bool show = false, ConsoleColor color = ConsoleColor.Gray)
|
|
|
+ {
|
|
|
+ Log(entry.ToString(), show, color);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
- public static void Log(string entry, bool show = false)
|
|
|
+
|
|
|
+ public static void Log(string entry, bool show = false, ConsoleColor color = ConsoleColor.Gray)
|
|
|
{
|
|
|
UnityEngine.UnityLogWriter.WriteStringToUnityLog($"BEPIN - {entry}\r\n");
|
|
|
|
|
|
+ Kon.ForegroundColor = color;
|
|
|
Console.WriteLine(entry);
|
|
|
|
|
|
EntryLogged?.Invoke(entry, show);
|