mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +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"));
|
||||
|
||||
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 =
|
||||
JsonConvert.DeserializeObject<PluginDefinition>(
|
||||
File.ReadAllText(defJsonFile.FullName));
|
||||
pluginDef =
|
||||
JsonConvert.DeserializeObject<PluginDefinition>(
|
||||
File.ReadAllText(defJsonFile.FullName));
|
||||
|
||||
if (pluginDef.ApplicableVersion != this.dalamud.StartInfo.GameVersion && pluginDef.ApplicableVersion != "any") {
|
||||
Log.Information("Plugin {0} has not applicable version.", dllFile.FullName);
|
||||
return false;
|
||||
if (pluginDef.ApplicableVersion != this.dalamud.StartInfo.GameVersion && pluginDef.ApplicableVersion != "any")
|
||||
{
|
||||
Log.Information("Plugin {0} has not applicable version.", dllFile.FullName);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue