changeset 7:319a26d3539e

- ToC Update.
author Tercio
date Tue, 23 Jun 2015 13:34:53 -0300
parents bd92dffef495
children 2f9d1a15506a
files Libs/AceDB-3.0/AceDB-3.0.lua PVPScan.toc
diffstat 2 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Libs/AceDB-3.0/AceDB-3.0.lua	Tue Feb 24 20:16:10 2015 -0300
+++ b/Libs/AceDB-3.0/AceDB-3.0.lua	Tue Jun 23 13:34:53 2015 -0300
@@ -39,8 +39,8 @@
 -- end
 -- @class file
 -- @name AceDB-3.0.lua
--- @release $Id: AceDB-3.0.lua 1096 2013-09-13 15:05:40Z nevcairiel $
-local ACEDB_MAJOR, ACEDB_MINOR = "AceDB-3.0", 23
+-- @release $Id: AceDB-3.0.lua 1124 2014-10-27 21:00:07Z funkydude $
+local ACEDB_MAJOR, ACEDB_MINOR = "AceDB-3.0", 26
 local AceDB, oldminor = LibStub:NewLibrary(ACEDB_MAJOR, ACEDB_MINOR)
 
 if not AceDB then return end -- No upgrade needed
@@ -260,9 +260,12 @@
 local _, raceKey = UnitRace("player")
 local factionKey = UnitFactionGroup("player")
 local factionrealmKey = factionKey .. " - " .. realmKey
-local factionrealmregionKey = factionrealmKey .. " - " .. string.sub(GetCVar("realmList"), 1, 2):upper()
 local localeKey = GetLocale():lower()
 
+local regionTable = { "US", "KR", "EU", "TW", "CN" }
+local regionKey = regionTable[GetCurrentRegion()]
+local factionrealmregionKey = factionrealmKey .. " - " .. regionKey
+
 -- Actual database initialization function
 local function initdb(sv, defaults, defaultProfile, olddb, parent)
 	-- Generate the database keys for each section
@@ -300,7 +303,7 @@
 		["factionrealm"] = factionrealmKey,
 		["factionrealmregion"] = factionrealmregionKey,
 		["profile"] = profileKey,
-        ["locale"] = localeKey,
+		["locale"] = localeKey,
 		["global"] = true,
 		["profiles"] = true,
 	}
--- a/PVPScan.toc	Tue Feb 24 20:16:10 2015 -0300
+++ b/PVPScan.toc	Tue Jun 23 13:34:53 2015 -0300
@@ -1,4 +1,4 @@
-## Interface: 60100
+## Interface: 60200
 ## Title: PVPScan
 ## Notes: Track enemies near you
 ## Version: 0.1