Browse Source

Added a ModPrefs object to the list of possible parameters to Init()

pull/46/head
Anairkoen Schno 6 years ago
parent
commit
86de46ccab
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      IllusionInjector/PluginManager.cs

+ 2
- 0
IllusionInjector/PluginManager.cs View File

@ -197,6 +197,8 @@ namespace IllusionInjector
var ptype = param.ParameterType; var ptype = param.ParameterType;
if (ptype.IsAssignableFrom(typeof(LoggerBase))) if (ptype.IsAssignableFrom(typeof(LoggerBase)))
initArgs.Add(new StandardLogger(bsPlugin.Name)); initArgs.Add(new StandardLogger(bsPlugin.Name));
if (ptype.IsAssignableFrom(typeof(ModPrefs)))
initArgs.Add(new ModPrefs(bsPlugin));
else else
initArgs.Add(ptype.GetDefault()); initArgs.Add(ptype.GetDefault());
} }


Loading…
Cancel
Save