Hi,
ist there a reliable, robust way to find out the API version under which an addon is running? This would be useful when changing addon code in order to support an upcoming ESO version on the PTS server if the addon should run on both the current and the future API version.
I couldn't find any function like GetAPIversion() or so. Is there any?
I was thinking of writing such a function by examining "typical properties" of a certain API version, such as the existence of a function or a global value, like this:
Lua Code:
function GetAPIVersion()
if not functionWhichWasRemovedInVersion100010 then
return 100010
end
return 100009
end
The shown approach is not very reliable since it checks for existence of a "magic" function which is no longer supported in a certain API version.
Maybe there is a better way? Any ideas?
// Klaro