Browse Source

Fix SafeConsole implementation

Bepis 4 years ago
parent
commit
eccef11ca6
1 changed files with 2 additions and 2 deletions
  1. 2 2
      BepInEx/Console/SafeConsole.cs

+ 2 - 2
BepInEx/Console/SafeConsole.cs

@@ -82,11 +82,11 @@ namespace UnityInjector.ConsoleUtil
 				: (() => ConsoleColor.Black);
 
 			_getTitle = gtt != null
-				? (GetStringDelegate)Delegate.CreateDelegate(typeof(GetColorDelegate), gtt)
+				? (GetStringDelegate)Delegate.CreateDelegate(typeof(GetStringDelegate), gtt)
 				: (() => string.Empty);
 
 			_setTitle = stt != null
-				? (SetStringDelegate)Delegate.CreateDelegate(typeof(GetColorDelegate), stt)
+				? (SetStringDelegate)Delegate.CreateDelegate(typeof(SetStringDelegate), stt)
 				: (value => { });
 
 			BackgroundColorExists = _setBackgroundColor != null && _getBackgroundColor != null;