public static void HandleWarningOrError(MelonLogType logType, string callingMod, string logText)
        {
            if (callingMod == "MLConsoleViewer")
            {
                return;
            }

            LogTracker.OnLog(new MelonLog(callingMod, logText, logType));
        }
Ejemplo n.º 2
0
 private IEnumerator UpdatePendingLogs()
 {
     for (;;)
     {
         if (InGameConsoleInterface.Singleton != null)
         {
             LogTracker.PurgeAwaiting(InGameConsoleInterface.Singleton);
         }
         yield return(new WaitForSeconds(0.25f));
     }
 }
        public static void HandleMelonMsg(ConsoleColor melonColor, ConsoleColor txtColor, string callingMod, string logText)
        {
            //if (callingMod == "MLConsoleViewer") return;

            LogTracker.OnLog(new MelonLog(melonColor, txtColor, callingMod, logText));
        }