no more forced addon disable, just warnings about required dlls, and also multiscan + help conditional works on friendlies

This commit is contained in:
Jrc13245
2026-03-24 07:50:13 -04:00
parent cb5ce8f824
commit 58974de765
2 changed files with 67 additions and 22 deletions
+6 -11
View File
@@ -162,26 +162,21 @@ requirementCheckFrame:SetScript("OnEvent", function()
and CleveRoids.NampowerAPI.HasMinimumVersion(3, 0, 0)
if not hasNampower30 or not hasUnitXP then
-- Show errors
-- Show warnings (don't disable — tearing down a partially-initialized addon causes hangs)
if not hasNampower then
CleveRoids.Print("|cFFFF0000SuperCleveRoidMacros|r requires |cFF00FFFFAvitasia's Nampower v3.0.0+|r:")
CleveRoids.Print("|cFFFF9900WARNING:|r |cFF00FFFFAvitasia's Nampower v3.0.0+|r is required:")
CleveRoids.Print("https://gitea.com/avitasia/nampower")
CleveRoids.Print("Many features will be unavailable without Nampower.")
elseif not hasNampower30 then
local major, minor, patch = CleveRoids.NampowerAPI.GetVersion()
CleveRoids.Print(format("|cFFFF0000SuperCleveRoidMacros|r requires |cFF00FFFFNampower v3.0.0+|r (you have v%d.%d.%d):", major, minor, patch))
CleveRoids.Print(format("|cFFFF9900WARNING:|r |cFF00FFFFNampower v3.0.0+|r is required (you have v%d.%d.%d):", major, minor, patch))
CleveRoids.Print("https://gitea.com/avitasia/nampower")
CleveRoids.Print("Some features may be unavailable with this version.")
end
if not hasUnitXP then
CleveRoids.Print("|cFFFF0000SuperCleveRoidMacros|r requires |cFF00FFFFKonaka's UnitXP_SP3|r:")
CleveRoids.Print("|cFFFF9900WARNING:|r |cFF00FFFFKonaka's UnitXP_SP3|r is required:")
CleveRoids.Print("https://codeberg.org/konaka/UnitXP_SP3")
end
-- Disable immediately
CleveRoids.DisableAddon("Missing Requirements")
-- Unregister this check frame
this:UnregisterAllEvents()
return
end
-- Requirements met - allow normal initialization