Mercurial > wow > wowdb-profiler
comparison Main.lua @ 533:2bb33dbd3d7c 7.2.0-4
Removed support and use of LibRealmInfo, which apparently broke in Patch 7.2.0.
author | MMOSimca |
---|---|
date | Tue, 11 Apr 2017 20:53:22 -0400 |
parents | 4d8f02877b4f |
children | 4a7989584ae8 |
comparison
equal
deleted
inserted
replaced
532:4d8f02877b4f | 533:2bb33dbd3d7c |
---|---|
26 local LibStub = _G.LibStub | 26 local LibStub = _G.LibStub |
27 local WDP = LibStub("AceAddon-3.0"):NewAddon(ADDON_NAME, "AceConsole-3.0", "AceEvent-3.0") | 27 local WDP = LibStub("AceAddon-3.0"):NewAddon(ADDON_NAME, "AceConsole-3.0", "AceEvent-3.0") |
28 | 28 |
29 local deformat = LibStub("LibDeformat-3.0") | 29 local deformat = LibStub("LibDeformat-3.0") |
30 local HereBeDragons = LibStub("HereBeDragons-1.0") | 30 local HereBeDragons = LibStub("HereBeDragons-1.0") |
31 local LibRealmInfo = LibStub("LibRealmInfo") | |
32 | 31 |
33 local DatamineTT = _G.CreateFrame("GameTooltip", "WDPDatamineTT", _G.UIParent, "GameTooltipTemplate") | 32 local DatamineTT = _G.CreateFrame("GameTooltip", "WDPDatamineTT", _G.UIParent, "GameTooltipTemplate") |
34 DatamineTT:SetOwner(_G.WorldFrame, "ANCHOR_NONE") | 33 DatamineTT:SetOwner(_G.WorldFrame, "ANCHOR_NONE") |
35 | 34 |
36 | 35 |
914 char_db = db.char | 913 char_db = db.char |
915 | 914 |
916 local raw_db = _G.WoWDBProfilerData | 915 local raw_db = _G.WoWDBProfilerData |
917 local build_num = tonumber(private.build_num) | 916 local build_num = tonumber(private.build_num) |
918 | 917 |
919 -- Get current region from LibRealmInfo (and account for the fact that PTR and Beta return nil) | 918 -- Get current region from API (flawed) |
920 local current_region = LibRealmInfo:GetCurrentRegion() or "XX" | 919 local current_region = _G.GetCurrentRegionName() or "XX" |
921 | 920 |
922 -- Wipe all data if DB version or build number changed | 921 -- Wipe all data if DB version or build number changed |
923 if (raw_db.version and raw_db.version < DB_VERSION) or (raw_db.build_num and raw_db.build_num < build_num) then | 922 if (raw_db.version and raw_db.version < DB_VERSION) or (raw_db.build_num and raw_db.build_num < build_num) then |
924 for entry in pairs(DATABASE_DEFAULTS.global) do | 923 for entry in pairs(DATABASE_DEFAULTS.global) do |
925 global_db[entry] = {} | 924 global_db[entry] = {} |