Files
CBT/CBT/Helpers/ManifestManager.cs
T
KnackAtNite 5b3d8c87d1
Debug Build and Test / Build against Latest Dalamud (push) Has been cancelled
Debug Build and Test / Build against Staging Dalamud (push) Has been cancelled
Release Build and Publish / Release Build against Staging Dalamud and deploy to MyDalamudPlugins (release) Has been cancelled
CBT API 14 compatibility: Dalamud SDK 14, net10, fix ISigScanner and LocalPlayer
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-08 13:27:41 -05:00

25 lines
727 B
C#

namespace CBT.Helpers;
using System;
using System.IO;
using Newtonsoft.Json;
/// <summary>
/// Initializes a new instance of the <see cref="ManifestManager"/> class.
/// </summary>
/// <remarks>
/// ManifestManager loads the Plugin manifest from the assembly directory.
/// </remarks>
/// <param name="manifestPath">Path to the Assembly directory where manifest is located.</param>
public class ManifestManager(string manifestPath) : IDisposable
{
/// <summary>
/// Gets the PluginManifest.
/// </summary>
public Manifest? Manifest { get; private set; } = JsonConvert.DeserializeObject<Manifest>(File.ReadAllText(manifestPath)) ?? new Manifest();
/// <inheritdoc/>
public void Dispose()
{
}
}