Browse Source

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

refactor
Anairkoen Schno 6 years ago
parent
commit
89ff969467
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;
if (ptype.IsAssignableFrom(typeof(LoggerBase)))
initArgs.Add(new StandardLogger(bsPlugin.Name));
if (ptype.IsAssignableFrom(typeof(ModPrefs)))
initArgs.Add(new ModPrefs(bsPlugin));
else
initArgs.Add(ptype.GetDefault());
}


Loading…
Cancel
Save