internal static void LogMelonError(string msg, string modname) { string namesection = (string.IsNullOrEmpty(modname) ? "" : ("[" + modname.Replace(" ", "_") + "] ")); Native_LogMelonError(namesection, msg); MelonConsole.RunErrorCallbacks(namesection, msg); }
public static void LogError(string s) { string namesection = GetNameSection(); Native_LogError(namesection, s); MelonConsole.RunErrorCallbacks(namesection, s); }
public static void LogError(string s, params object[] args) { string namesection = GetNameSection(); string fmt = string.Format(s, args); Native_LogError(namesection, fmt); MelonConsole.RunErrorCallbacks(namesection, fmt); }