mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +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,7 +101,9 @@ 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)
|
||||||
|
{
|
||||||
|
if (!raw)
|
||||||
{
|
{
|
||||||
Log.Information("Loading definition for plugin DLL {0}", dllFile.FullName);
|
Log.Information("Loading definition for plugin DLL {0}", dllFile.FullName);
|
||||||
|
|
||||||
|
|
@ -109,11 +111,13 @@ namespace Dalamud.Plugin
|
||||||
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);
|
Log.Information("Plugin {0} has not applicable version.", dllFile.FullName);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log.Information("Plugin DLL {0} has no definition.", dllFile.FullName);
|
Log.Information("Plugin DLL {0} has no definition.", dllFile.FullName);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue