git
/
wowui.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2ddc77e - Remove AceTimer
[wowui.git]
/
libs
/
AceDB-3.0
/
AceDB-3.0.lua
diff --git
a/libs/AceDB-3.0/AceDB-3.0.lua
b/libs/AceDB-3.0/AceDB-3.0.lua
index
7db49ba
..
b42b442
100644
(file)
--- a/
libs/AceDB-3.0/AceDB-3.0.lua
+++ b/
libs/AceDB-3.0/AceDB-3.0.lua
@@
-10,6
+10,7
@@
-- * **race** Race-specific data. All of the players characters of the same race share this database.
-- * **faction** Faction-specific data. All of the players characters of the same faction share this database.
-- * **factionrealm** Faction and realm specific data. All of the players characters on the same realm and of the same faction share this database.
-- * **race** Race-specific data. All of the players characters of the same race share this database.
-- * **faction** Faction-specific data. All of the players characters of the same faction share this database.
-- * **factionrealm** Faction and realm specific data. All of the players characters on the same realm and of the same faction share this database.
+-- * **locale** Locale specific data, based on the locale of the players game client.
-- * **global** Global Data. All characters on the same account share this database.
-- * **profile** Profile-specific data. All characters using the same profile share this database. The user can control which profile should be used.
--
-- * **global** Global Data. All characters on the same account share this database.
-- * **profile** Profile-specific data. All characters using the same profile share this database. The user can control which profile should be used.
--
@@
-39,8
+40,8
@@
-- end
-- @class file
-- @name AceDB-3.0.lua
-- end
-- @class file
-- @name AceDB-3.0.lua
--- @release $Id: AceDB-3.0.lua 11
11 2014-07-19 20:01:42Z kaelten
$
-local ACEDB_MAJOR, ACEDB_MINOR = "AceDB-3.0", 2
4
+-- @release $Id: AceDB-3.0.lua 11
42 2016-07-11 08:36:19Z nevcairiel
$
+local ACEDB_MAJOR, ACEDB_MINOR = "AceDB-3.0", 2
6
local AceDB, oldminor = LibStub:NewLibrary(ACEDB_MAJOR, ACEDB_MINOR)
if not AceDB then return end -- No upgrade needed
local AceDB, oldminor = LibStub:NewLibrary(ACEDB_MAJOR, ACEDB_MINOR)
if not AceDB then return end -- No upgrade needed
@@
-262,7
+263,8
@@
local factionKey = UnitFactionGroup("player")
local factionrealmKey = factionKey .. " - " .. realmKey
local localeKey = GetLocale():lower()
local factionrealmKey = factionKey .. " - " .. realmKey
local localeKey = GetLocale():lower()
-local regionKey = GetCVar("portal") == "public-test" and "PTR" or GetCVar("portal")
+local regionTable = { "US", "KR", "EU", "TW", "CN" }
+local regionKey = regionTable[GetCurrentRegion()]
local factionrealmregionKey = factionrealmKey .. " - " .. regionKey
-- Actual database initialization function
local factionrealmregionKey = factionrealmKey .. " - " .. regionKey
-- Actual database initialization function
@@
-302,7
+304,7
@@
local function initdb(sv, defaults, defaultProfile, olddb, parent)
["factionrealm"] = factionrealmKey,
["factionrealmregion"] = factionrealmregionKey,
["profile"] = profileKey,
["factionrealm"] = factionrealmKey,
["factionrealmregion"] = factionrealmregionKey,
["profile"] = profileKey,
- ["locale"] = localeKey,
+
["locale"] = localeKey,
["global"] = true,
["profiles"] = true,
}
["global"] = true,
["profiles"] = true,
}