Browse Source

Fixed ModPrefs type

refactor 3.8.2
Anairkoen Schno 6 years ago
parent
commit
adbd871c0d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      IllusionInjector/PluginManager.cs

+ 2
- 2
IllusionInjector/PluginManager.cs View File

@ -207,7 +207,7 @@ namespace IllusionInjector
var ptype = param.ParameterType;
if (ptype.IsAssignableFrom(typeof(LoggerBase)))
initArgs.Add(new StandardLogger(bsPlugin.Name));
if (ptype.IsAssignableFrom(typeof(ModPrefs)))
else if (ptype.IsAssignableFrom(typeof(IModPrefs)))
initArgs.Add(new ModPrefs(bsPlugin));
else
initArgs.Add(ptype.GetDefault());
@ -219,7 +219,7 @@ namespace IllusionInjector
bsPlugins.Add(new BSPluginMeta
{
Plugin = bsPlugin,
Filename = file,
Filename = file.Replace("\\.cache", ""), // quick and dirty fix
ModsaberInfo = bsPlugin.ModInfo
});
}


Loading…
Cancel
Save