Ignore user testing opt-in for manifest eligibility check

This commit is contained in:
Haselnussbomber 2025-09-28 15:59:08 +02:00
parent d1fbee2829
commit 8edbc0ee78
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1

View file

@ -1193,9 +1193,18 @@ internal class PluginManager : IInternalDisposableService
return false; return false;
// API level - we keep the API before this in the installer to show as "outdated" // API level - we keep the API before this in the installer to show as "outdated"
var effectiveApiLevel = this.UseTesting(manifest) && manifest.TestingDalamudApiLevel != null ? manifest.TestingDalamudApiLevel.Value : manifest.DalamudApiLevel; if (!this.LoadAllApiLevels)
if (effectiveApiLevel < DalamudApiLevel - 1 && !this.LoadAllApiLevels) {
return false; var effectiveDalamudApiLevel =
this.CanUseTesting(manifest) &&
manifest.TestingDalamudApiLevel.HasValue &&
manifest.TestingDalamudApiLevel.Value > manifest.DalamudApiLevel
? manifest.TestingDalamudApiLevel.Value
: manifest.DalamudApiLevel;
if (effectiveDalamudApiLevel < PluginManager.DalamudApiLevel - 1)
return false;
}
// Banned // Banned
if (this.IsManifestBanned(manifest)) if (this.IsManifestBanned(manifest))