Browse Source

Allowed accessors to add printers to StandardLoggers

piracy-check
Anairkoen Schno 6 years ago
parent
commit
1c403cbe35
4 changed files with 15 additions and 6 deletions
  1. +2
    -2
      IPA.Injector/Properties/AssemblyInfo.cs
  2. +10
    -1
      IPA.Loader/Logging/StandardLogger.cs
  3. +1
    -1
      IPA.Loader/Updating/SelfPlugin.cs
  4. +2
    -2
      IPA/Properties/AssemblyInfo.cs

+ 2
- 2
IPA.Injector/Properties/AssemblyInfo.cs View File

@ -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")]

+ 10
- 1
IPA.Loader/Logging/StandardLogger.cs View File

@ -57,7 +57,7 @@ namespace IPA.Logging
private List<LogPrinter> printers = new List<LogPrinter>(defaultPrinters);
private Dictionary<string, StandardLogger> children = new Dictionary<string, StandardLogger>();
static StandardLogger()
{
showSourceClass = ModPrefs.GetBool("IPA", "DebugShowCallSource", false, true);
@ -104,6 +104,15 @@ namespace IPA.Logging
return chld;
}
/// <summary>
/// Adds a log printer to the logger.
/// </summary>
/// <param name="printer">the printer to add</param>
public void AddPrinter(LogPrinter printer)
{
printers.Add(printer);
}
/// <summary>
/// Logs a specific message at a given level.
/// </summary>


+ 1
- 1
IPA.Loader/Updating/SelfPlugin.cs View File

@ -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();


+ 2
- 2
IPA/Properties/AssemblyInfo.cs View File

@ -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")]

Loading…
Cancel
Save