mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 13:14:17 +01:00
fix devPlugins not being able to load
This commit is contained in:
parent
042320718b
commit
1e3b39b8d9
1 changed files with 12 additions and 8 deletions
|
|
@ -101,17 +101,21 @@ namespace Dalamud.Plugin
|
||||||
var defJsonFile = new FileInfo(Path.Combine(dllFile.Directory.FullName, $"{Path.GetFileNameWithoutExtension(dllFile.Name)}.json"));
|
var defJsonFile = new FileInfo(Path.Combine(dllFile.Directory.FullName, $"{Path.GetFileNameWithoutExtension(dllFile.Name)}.json"));
|
||||||
|
|
||||||
PluginDefinition pluginDef = null;
|
PluginDefinition pluginDef = null;
|
||||||
if (defJsonFile.Exists && !raw)
|
if (defJsonFile.Exists)
|
||||||
{
|
{
|
||||||
Log.Information("Loading definition for plugin DLL {0}", dllFile.FullName);
|
if (!raw)
|
||||||
|
{
|
||||||
|
Log.Information("Loading definition for plugin DLL {0}", dllFile.FullName);
|
||||||
|
|
||||||
pluginDef =
|
pluginDef =
|
||||||
JsonConvert.DeserializeObject<PluginDefinition>(
|
JsonConvert.DeserializeObject<PluginDefinition>(
|
||||||
File.ReadAllText(defJsonFile.FullName));
|
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;
|
Log.Information("Plugin {0} has not applicable version.", dllFile.FullName);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue