mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
pm: don't throw if there are no valid versions for a plugin
This commit is contained in:
parent
0382b927ea
commit
714e9e0319
1 changed files with 17 additions and 3 deletions
|
|
@ -470,10 +470,18 @@ internal partial class PluginManager : IInternalDisposableService
|
|||
try
|
||||
{
|
||||
var dllFile = new FileInfo(Path.Combine(versionDir.FullName, $"{pluginDir.Name}.dll"));
|
||||
var manifestFile = LocalPluginManifest.GetManifestFile(dllFile);
|
||||
|
||||
if (!manifestFile.Exists)
|
||||
if (!dllFile.Exists)
|
||||
{
|
||||
Log.Error("No DLL found for plugin at {Path}", versionDir.FullName);
|
||||
continue;
|
||||
}
|
||||
|
||||
var manifestFile = LocalPluginManifest.GetManifestFile(dllFile);
|
||||
if (!manifestFile.Exists)
|
||||
{
|
||||
Log.Error("No manifest for plugin at {Path}", dllFile.FullName);
|
||||
continue;
|
||||
}
|
||||
|
||||
var manifest = LocalPluginManifest.Load(manifestFile);
|
||||
if (manifest == null)
|
||||
|
|
@ -494,6 +502,12 @@ internal partial class PluginManager : IInternalDisposableService
|
|||
}
|
||||
|
||||
this.configuration.QueueSave();
|
||||
|
||||
if (versionsDefs.Count == 0)
|
||||
{
|
||||
Log.Verbose("No versions found for plugin: {Name}", pluginDir.Name);
|
||||
continue;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue