Add MinimumDalamudVersion to manifest, validate at install, update and load

This commit is contained in:
goaaats 2025-04-15 21:29:18 +02:00
parent 3f724170b2
commit b810154125
7 changed files with 58 additions and 17 deletions

View file

@ -70,10 +70,17 @@ public static class Util
private static ulong moduleEndAddr;
/// <summary>
/// Gets the assembly version of Dalamud.
/// Gets the Dalamud version.
/// </summary>
[Api13ToDo("Remove. Make both versions here internal. Add an API somewhere.")]
public static string AssemblyVersion { get; } =
Assembly.GetAssembly(typeof(ChatHandlers)).GetName().Version.ToString();
Assembly.GetAssembly(typeof(ChatHandlers))!.GetName().Version!.ToString();
/// <summary>
/// Gets the Dalamud version.
/// </summary>
internal static Version AssemblyVersionParsed { get; } =
Assembly.GetAssembly(typeof(ChatHandlers))!.GetName().Version!;
/// <summary>
/// Gets the SCM Version from the assembly, or null if it cannot be found. This method will generally return