From 1c403cbe354b89ade9094d48e23c235e8ee6a68f Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Sun, 9 Sep 2018 17:39:19 -0500 Subject: [PATCH] Allowed accessors to add printers to StandardLoggers --- IPA.Injector/Properties/AssemblyInfo.cs | 4 ++-- IPA.Loader/Logging/StandardLogger.cs | 11 ++++++++++- IPA.Loader/Updating/SelfPlugin.cs | 2 +- IPA/Properties/AssemblyInfo.cs | 4 ++-- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/IPA.Injector/Properties/AssemblyInfo.cs b/IPA.Injector/Properties/AssemblyInfo.cs index 3646f1f1..9b4a786f 100644 --- a/IPA.Injector/Properties/AssemblyInfo.cs +++ b/IPA.Injector/Properties/AssemblyInfo.cs @@ -35,5 +35,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("3.10.0")] -[assembly: AssemblyFileVersion("3.10.0")] +[assembly: AssemblyVersion("3.10.1")] +[assembly: AssemblyFileVersion("3.10.1")] diff --git a/IPA.Loader/Logging/StandardLogger.cs b/IPA.Loader/Logging/StandardLogger.cs index dbde3578..d6e59c49 100644 --- a/IPA.Loader/Logging/StandardLogger.cs +++ b/IPA.Loader/Logging/StandardLogger.cs @@ -57,7 +57,7 @@ namespace IPA.Logging private List printers = new List(defaultPrinters); private Dictionary children = new Dictionary(); - + static StandardLogger() { showSourceClass = ModPrefs.GetBool("IPA", "DebugShowCallSource", false, true); @@ -104,6 +104,15 @@ namespace IPA.Logging return chld; } + /// + /// Adds a log printer to the logger. + /// + /// the printer to add + public void AddPrinter(LogPrinter printer) + { + printers.Add(printer); + } + /// /// Logs a specific message at a given level. /// diff --git a/IPA.Loader/Updating/SelfPlugin.cs b/IPA.Loader/Updating/SelfPlugin.cs index 4d1b7bd0..0293b832 100644 --- a/IPA.Loader/Updating/SelfPlugin.cs +++ b/IPA.Loader/Updating/SelfPlugin.cs @@ -11,7 +11,7 @@ namespace IPA.Updating internal class SelfPlugin : IBeatSaberPlugin { internal const string IPA_Name = "Beat Saber IPA"; - internal const string IPA_Version = "3.10.0"; + internal const string IPA_Version = "3.10.1"; public static SelfPlugin Instance { get; set; } = new SelfPlugin(); diff --git a/IPA/Properties/AssemblyInfo.cs b/IPA/Properties/AssemblyInfo.cs index 17291691..eacd52a8 100644 --- a/IPA/Properties/AssemblyInfo.cs +++ b/IPA/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("3.10.0")] -[assembly: AssemblyFileVersion("3.10.0")] +[assembly: AssemblyVersion("3.10.1")] +[assembly: AssemblyFileVersion("3.10.1")]