Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Commit

Permalink
fix derpy stack overflow...
Browse files Browse the repository at this point in the history
  • Loading branch information
Crzyrndm committed Apr 24, 2017
1 parent f7ef1a1 commit 6618ab6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions FilterExtension/LoadAndProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -544,24 +544,24 @@ public enum LogLevel
/// </summary>
/// <param name="o"></param>
internal static void Log(object o, LogLevel level = LogLevel.Log)
{
Log(o.ToString(), level);
}

internal static void Log(string format, LogLevel level = LogLevel.Log, params object[] o)
{
if (level == LogLevel.Log)
{
Debug.LogFormat($"[Filter Extensions {version}]: {o}");
Debug.LogFormat($"[Filter Extensions {version}]: {string.Format(format, o)}");
}
else if (level == LogLevel.Warn)
{
Debug.LogWarningFormat($"[Filter Extensions {version}]: {o}");
Debug.LogWarningFormat($"[Filter Extensions {version}]: {string.Format(format, o)}");
}
else
{
Debug.LogErrorFormat($"[Filter Extensions {version}]: {o}");
Debug.LogErrorFormat($"[Filter Extensions {version}]: {string.Format(format, o)}");
}
}

internal static void Log(string format, LogLevel level = LogLevel.Log, params object[] o)
{
Log(string.Format(format, o), level);
}
}
}
Binary file modified GameData/000_FilterExtensions/FilterExtensions.dll
Binary file not shown.
Binary file modified Testing/FE_Testing.dll
Binary file not shown.

0 comments on commit 6618ab6

Please sign in to comment.