Quantcast WoWInterface - View Single Post - Addons - Single Source for Classic and current?
View Single Post
06-19-19, 10:28 PM   #8
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,171
GetBuildInfo() returns 1.13.2.xxx for classic so :

Lua Code:
  1. local BuildInfo = GetBuildInfo()
  2. BuildInfo = tonumber(string.sub(BuildInfo, 1, 2))
  3. if BuildInfo < 2 then
  4.     print("Classic")
  5. end
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote