mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
deps: update FFXIVClientStructs
This commit is contained in:
parent
c142cc7167
commit
29201465f4
2 changed files with 20 additions and 19 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System.IO;
|
||||
|
||||
using Dalamud.Utility;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
|
@ -10,24 +11,6 @@ namespace Dalamud.Plugin.Internal.Types
|
|||
/// </summary>
|
||||
internal record LocalPluginManifest : PluginManifest
|
||||
{
|
||||
/// <summary>
|
||||
/// Check if this manifest is valid.
|
||||
/// </summary>
|
||||
/// <returns>Whether or not this manifest is valid.</returns>
|
||||
public bool CheckSanity()
|
||||
{
|
||||
if (this.InternalName.IsNullOrEmpty())
|
||||
return false;
|
||||
|
||||
if (this.Name.IsNullOrEmpty())
|
||||
return false;
|
||||
|
||||
if (this.DalamudApiLevel == 0)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the plugin is disabled and should not be loaded.
|
||||
/// This value supercedes the ".disabled" file functionality and should not be included in the plugin master.
|
||||
|
|
@ -94,5 +77,23 @@ namespace Dalamud.Plugin.Internal.Types
|
|||
/// <param name="dllFile">The plugin DLL.</param>
|
||||
/// <returns>The <see cref="PluginManifest"/> .testing file.</returns>
|
||||
public static FileInfo GetTestingFile(FileInfo dllFile) => new(Path.Combine(dllFile.DirectoryName, ".testing"));
|
||||
|
||||
/// <summary>
|
||||
/// Check if this manifest is valid.
|
||||
/// </summary>
|
||||
/// <returns>Whether or not this manifest is valid.</returns>
|
||||
public bool CheckSanity()
|
||||
{
|
||||
if (this.InternalName.IsNullOrEmpty())
|
||||
return false;
|
||||
|
||||
if (this.Name.IsNullOrEmpty())
|
||||
return false;
|
||||
|
||||
if (this.DalamudApiLevel == 0)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 16b2b563f696310f87cfd0674fde564b3ca3f562
|
||||
Subproject commit 2edb42de52016ae42d95f5434296fbf0018993a6
|
||||
Loading…
Add table
Add a link
Reference in a new issue