View Single Post
09-27-20, 06:12 AM   #4
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
You might take a look at https://www.townlong-yak.com/framexm...onList.lua#478

Lua Code:
  1. function AddonList_HasOutOfDate()
  2.     local hasOutOfDate = false;
  3.     for i=1, GetNumAddOns() do
  4.         local name, title, notes, loadable, reason = GetAddOnInfo(i);
  5.         local character = nil;
  6.         if (not InGlue()) then
  7.             character = UnitName("player");
  8.         end
  9.         local enabled = (GetAddOnEnableState(character, i) > 0);
  10.         if ( enabled and not loadable and reason == "INTERFACE_VERSION" ) then
  11.             hasOutOfDate = true;
  12.             break;
  13.         end
  14.     end
  15.     return hasOutOfDate;
  16. end
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote