From dc4c8a67c77006e1ac2624f282ab0b9dfe28595b Mon Sep 17 00:00:00 2001 From: Albirew Date: Tue, 15 Oct 2019 15:38:20 +0200 Subject: [PATCH] more declarations --- Declares.lua | 21 +++++++++++++-------- Util.lua | 4 ++-- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/Declares.lua b/Declares.lua index 85ba0e2..f0f1ed4 100644 --- a/Declares.lua +++ b/Declares.lua @@ -1,18 +1,23 @@ --[[ Author: Alternator (Massiner of Nathrezim) Copyright 2010 - - Notes: + + Notes: ]] -BFLocales = {}; -BFConst = {}; -BFUtil = {}; -BFUILib = {}; -BFButton = {}; -BFBar = {}; +BFLocales = {}; +BFConst = {}; +BFUtil = {}; +BFUILib = {}; +BFButton = {}; +BFBar = {}; BFCustomAction = {}; ButtonForge_API1 = {}; ButtonForgeSave = {}; + +ButtonForgeSave.Bars = {}; +ButtonForgeGlobalSettings = {}; +ButtonForgeGlobalProfiles = {}; +ButtonForgeGlobalBackup = {}; diff --git a/Util.lua b/Util.lua index fe034ad..63f7ee6 100644 --- a/Util.lua +++ b/Util.lua @@ -246,7 +246,7 @@ function Util.UpdateSavedData() -----This section updates the global button forge data (introduced at 0.9.16) - if (not ButtonForgeGlobalSettings) then + if (not ButtonForgeGlobalSettings) or (ButtonForgeGlobalSettings == nil) then ButtonForgeGlobalSettings = {}; ButtonForgeGlobalSettings["Version"] = 0.9; ButtonForgeGlobalSettings["VersionMinor"] = 16; @@ -267,7 +267,7 @@ function Util.UpdateSavedData() end --pre v0.9.36 Safety process - if (not ButtonForgeGlobalProfiles) then + if (not ButtonForgeGlobalProfiles) or (ButtonForgeGlobalProfiles == nil) then ButtonForgeGlobalProfiles = {}; end