fix devPlugins not being able to load

This commit is contained in:
meli 2020-03-04 14:10:25 -08:00
parent 042320718b
commit 1e3b39b8d9

View file

@ -101,7 +101,9 @@ namespace Dalamud.Plugin
var defJsonFile = new FileInfo(Path.Combine(dllFile.Directory.FullName, $"{Path.GetFileNameWithoutExtension(dllFile.Name)}.json"));
PluginDefinition pluginDef = null;
if (defJsonFile.Exists && !raw)
if (defJsonFile.Exists)
{
if (!raw)
{
Log.Information("Loading definition for plugin DLL {0}", dllFile.FullName);
@ -109,11 +111,13 @@ namespace Dalamud.Plugin
JsonConvert.DeserializeObject<PluginDefinition>(
File.ReadAllText(defJsonFile.FullName));
if (pluginDef.ApplicableVersion != this.dalamud.StartInfo.GameVersion && pluginDef.ApplicableVersion != "any") {
if (pluginDef.ApplicableVersion != this.dalamud.StartInfo.GameVersion && pluginDef.ApplicableVersion != "any")
{
Log.Information("Plugin {0} has not applicable version.", dllFile.FullName);
return false;
}
}
}
else
{
Log.Information("Plugin DLL {0} has no definition.", dllFile.FullName);