Browse Source

Fixed obsolete warning

pull/11/head
Anairkoen Schno 5 years ago
parent
commit
feeb76c29e
2 changed files with 2 additions and 0 deletions
  1. +2
    -0
      IPA.Loader/Loader/PluginInitInjector.cs
  2. BIN
      Refs/UnityEngine.CoreModule.dll

+ 2
- 0
IPA.Loader/Loader/PluginInitInjector.cs View File

@ -36,7 +36,9 @@ namespace IPA.Loader
private static readonly List<Tuple<Type, InjectParameter>> injectors = new List<Tuple<Type, InjectParameter>> private static readonly List<Tuple<Type, InjectParameter>> injectors = new List<Tuple<Type, InjectParameter>>
{ {
new Tuple<Type, InjectParameter>(typeof(Logger), (prev, param, meta) => prev ?? new StandardLogger(meta.Name)), new Tuple<Type, InjectParameter>(typeof(Logger), (prev, param, meta) => prev ?? new StandardLogger(meta.Name)),
#pragma warning disable CS0618 // Type or member is obsolete
new Tuple<Type, InjectParameter>(typeof(IModPrefs), (prev, param, meta) => prev ?? new ModPrefs(meta)), new Tuple<Type, InjectParameter>(typeof(IModPrefs), (prev, param, meta) => prev ?? new ModPrefs(meta)),
#pragma warning restore CS0618 // Type or member is obsolete
new Tuple<Type, InjectParameter>(typeof(IConfigProvider), (prev, param, meta) => new Tuple<Type, InjectParameter>(typeof(IConfigProvider), (prev, param, meta) =>
{ {
if (prev != null) return prev; if (prev != null) return prev;


BIN
Refs/UnityEngine.CoreModule.dll View File


Loading…
Cancel
Save