From 96423953541551d6622f7df99797e181dea48bac Mon Sep 17 00:00:00 2001 From: "Nathanial.C.Jones" Date: Thu, 3 Jan 2013 01:11:02 +0000 Subject: [PATCH] Moved expected_version to vars.lua and made it global. --- QuestHelper/main.lua | 2 -- QuestHelper/vars.lua | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/QuestHelper/main.lua b/QuestHelper/main.lua index 75094f5..8247cc3 100644 --- a/QuestHelper/main.lua +++ b/QuestHelper/main.lua @@ -123,8 +123,6 @@ end local function FileCheck() local file_problem_version = false - local expected_version = GetAddOnMetadata("QuestHelper", "Version") - -- Why are we checking to make sure these files load? -- Most if not all are named in the toc file. -- Duh... There's a lot of files, ergo a method to make sure all expected files have been named in the toc file and check for files that are unexpected too. diff --git a/QuestHelper/vars.lua b/QuestHelper/vars.lua index a3041f8..8a1cc37 100755 --- a/QuestHelper/vars.lua +++ b/QuestHelper/vars.lua @@ -35,4 +35,6 @@ QuestHelper.quest_log = {} QuestHelper.pos = {nil, {}, 0, 0, 1, "You are here.", 0} QuestHelper.sharing = false -- Will be set to true when sharing with at least one user. -QHQuestsCompleted = false \ No newline at end of file +QHQuestsCompleted = false + +expected_version = GetAddOnMetadata("QuestHelper", "Version")