use KBSMultiAccount as global table
Talen-Shei [08-09-15 - 17:49]
use KBSMultiAccount as global table
diff --git a/KeyBindSwapper.lua b/KeyBindSwapper.lua
index 60aa964..f2a1050 100644
--- a/KeyBindSwapper.lua
+++ b/KeyBindSwapper.lua
@@ -351,12 +351,12 @@ end
function InitializePlugin ()
- if type(KeyBindSwapperSettings) ~= "table" then
- KeyBindSwapperSettings = KBS.Defaults.Global
+ if type(KBSMultiAccount) ~= "table" then
+ KBSMultiAccount = KBS.Defaults.Global
else
- KBS.Global = KeyBindSwapperSettings
+ KBS.Global = KBSMultiAccount
end
- KBS.Character = ZO_SavedVars:New("KBSCharSettings", KBS.SAVED_VAR_VERSION, nil, KBS.Defaults.Character, KBS.SVProfile)
+ KBS.Character = ZO_SavedVars:New(KBS.SettingsFile, KBS.SAVED_VAR_VERSION, nil, KBS.Defaults.Character, KBS.SVProfile)
EVENT_MANAGER:UnregisterForEvent("KeyBindSwapper", EVENT_ADD_ON_LOADED)
if KBS.Character.SyncMode == "Automatic" then
setKeyBinds()
diff --git a/KeyBindSwapper.txt b/KeyBindSwapper.txt
index 9fcbd6b..7e8f3c8 100644
--- a/KeyBindSwapper.txt
+++ b/KeyBindSwapper.txt
@@ -3,7 +3,7 @@
## Version: 0.51
## Author: Talen-Shei
## OptionalDependsOn: LibAddonMenu-2.0
-## SavedVariables: KeyBindSwapperSettings KBSCharSettings
+## SavedVariables: KeyBindSwapperSettings KBSMultiAccount
libs\LibStub\LibStub.lua