forked from brues/pfUI
A session without the ClassicAPI DLL loads only API_Check.lua from pfUI.toc, and the client then writes every unset SavedVariable as `pfUI_init = nil`. On the next login that file ran after pfUI's file-scope defaults, so TableIsEmpty(pfUI_init) threw in ADDON_LOADED, and the variables stayed nil and were saved as nil again on every logout. The flavor TOCs now set LoadSavedVariablesFirst, so the file-scope defaults run on the loaded values and replace any nil. The core profiles overwrite their saved copies at file scope, which makes the VARIABLES_LOADED hook redundant, and the leftover pfUI_config nil guards are gone.
41 lines
1.5 KiB
TeX
41 lines
1.5 KiB
TeX
## Interface: 11200
|
|
## Title: |cff33ffccpf|cffffffffUI
|
|
## Author: Shagu - modified by me0wg4ming & brues
|
|
## Notes: A complete user interface replacement.
|
|
## Notes-ruRU: Полная замена пользовательского интерфейса.
|
|
## Version: @project-version@
|
|
## SavedVariables: pfUI_profiles, pfUI_addon_profiles, pfUI_cache, pfUI_combatlog
|
|
## SavedVariablesPerCharacter: pfUI_config, pfUI_init, pfUI_playerDB, pfUI_eqmgr
|
|
## LoadSavedVariablesFirst: 1
|
|
## X-Website: https://github.com/brues-code/pfUI
|
|
|
|
# Selected by ClassicAPI on every non-Turtle client. Turtle clients get
|
|
# pfUI_Turtle.toc instead, which trades init\stock.xml for init\turtle.xml.
|
|
|
|
API_Check.lua
|
|
|
|
pfUI.lua
|
|
|
|
# Client strings: enUS always (the fallback), plus the client's own locale.
|
|
env\locales_enUS.lua
|
|
env\combatlog_enUS.lua
|
|
env\locales_koKR.lua [AllowLoadTextLocale koKR]
|
|
env\combatlog_koKR.lua [AllowLoadTextLocale koKR]
|
|
env\locales_frFR.lua [AllowLoadTextLocale frFR]
|
|
env\combatlog_frFR.lua [AllowLoadTextLocale frFR]
|
|
env\locales_deDE.lua [AllowLoadTextLocale deDE]
|
|
env\combatlog_deDE.lua [AllowLoadTextLocale deDE]
|
|
env\locales_zhCN.lua [AllowLoadTextLocale zhCN]
|
|
env\combatlog_zhCN.lua [AllowLoadTextLocale zhCN]
|
|
env\locales_esES.lua [AllowLoadTextLocale esES]
|
|
env\combatlog_esES.lua [AllowLoadTextLocale esES]
|
|
env\locales_ruRU.lua [AllowLoadTextLocale ruRU]
|
|
env\combatlog_ruRU.lua [AllowLoadTextLocale ruRU]
|
|
|
|
init\env.xml
|
|
init\stock.xml
|
|
init\api.xml
|
|
init\libs.xml
|
|
init\skins.xml
|
|
init\modules.xml
|