start v9 branch, pin API level to major version

This commit is contained in:
Ava Chaney 2023-05-27 16:31:10 -07:00
parent 4139dc14e7
commit f1f2b51cd6
3 changed files with 14 additions and 14 deletions

View file

@ -49,8 +49,9 @@ internal partial class PluginManager : IDisposable, IServiceType
{
/// <summary>
/// The current Dalamud API level, used to handle breaking changes. Only plugins with this level will be loaded.
/// As of Dalamud 9.x, this always matches the major version number of Dalamud.
/// </summary>
public const int DalamudApiLevel = 8;
public static int DalamudApiLevel => Assembly.GetExecutingAssembly().GetName().Version!.Major;
/// <summary>
/// Default time to wait between plugin unload and plugin assembly unload.