changeset 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 31d084e76340
files .pkgmeta Main.lua WoWDBProfiler.toc libs.xml
diffstat 4 files changed, 3 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/.pkgmeta	Tue Apr 11 20:47:39 2017 -0400
+++ b/.pkgmeta	Tue Apr 11 20:53:22 2017 -0400
@@ -25,5 +25,3 @@
     Libs/LibQTip-1.0:
         url: svn://svn.wowace.com/wow/libqtip-1-0/mainline/trunk
         tag: latest
-    Libs/LibRealmInfo:
-        url: git://git.curseforge.com/wow/librealminfo/mainline.git
--- a/Main.lua	Tue Apr 11 20:47:39 2017 -0400
+++ b/Main.lua	Tue Apr 11 20:53:22 2017 -0400
@@ -28,7 +28,6 @@
 
 local deformat = LibStub("LibDeformat-3.0")
 local HereBeDragons = LibStub("HereBeDragons-1.0")
-local LibRealmInfo = LibStub("LibRealmInfo")
 
 local DatamineTT = _G.CreateFrame("GameTooltip", "WDPDatamineTT", _G.UIParent, "GameTooltipTemplate")
 DatamineTT:SetOwner(_G.WorldFrame, "ANCHOR_NONE")
@@ -916,8 +915,8 @@
     local raw_db = _G.WoWDBProfilerData
     local build_num = tonumber(private.build_num)
 
-    -- Get current region from LibRealmInfo (and account for the fact that PTR and Beta return nil)
-    local current_region = LibRealmInfo:GetCurrentRegion() or "XX"
+    -- Get current region from API (flawed)
+    local current_region = _G.GetCurrentRegionName() or "XX"
 
     -- Wipe all data if DB version or build number changed
     if (raw_db.version and raw_db.version < DB_VERSION) or (raw_db.build_num and raw_db.build_num < build_num) then
--- a/WoWDBProfiler.toc	Tue Apr 11 20:47:39 2017 -0400
+++ b/WoWDBProfiler.toc	Tue Apr 11 20:53:22 2017 -0400
@@ -4,7 +4,7 @@
 ## Author: James D. Callahan III (Torhal)
 ## X-Email: jcallahan@curse.com
 ## SavedVariables: WoWDBProfilerData
-## OptionalDeps: Ace3, HereBeDragons-1.0, LibDeformat-3.0, LibDialog-1.0, LibQTip-1.0, LibRealmInfo
+## OptionalDeps: Ace3, HereBeDragons-1.0, LibDeformat-3.0, LibDialog-1.0, LibQTip-1.0
 
 libs.xml
 
--- a/libs.xml	Tue Apr 11 20:47:39 2017 -0400
+++ b/libs.xml	Tue Apr 11 20:53:22 2017 -0400
@@ -4,7 +4,6 @@
     <Script file="Libs\LibStub\LibStub.lua"/>
     <Script file="Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua"/>
     <Script file="Libs\HereBeDragons-1.0\HereBeDragons-1.0.lua"/>
-    <Script file="Libs\LibRealmInfo\LibRealmInfo.lua"/>
 
     <Include file="Libs\AceAddon-3.0\AceAddon-3.0.xml"/>
     <Include file="Libs\AceConsole-3.0\AceConsole-3.0.xml"/>