feat: release v1.4.6 - Fix SavedVariables persistence and red textures for MafWow/3.3.5a
This commit is contained in:
+19
-34
@@ -12,45 +12,30 @@ local WOW_PROJECT_ID = QuestieCompat.WOW_PROJECT_ID
|
||||
local C_Seasons = QuestieCompat.C_Seasons
|
||||
|
||||
-- Check addon is not renamed to avoid conflicts in global name space.
|
||||
if (not QuestieCompat.Is335) and addonName ~= "Questie" then
|
||||
local msg = { "You have renamed Questie addon.", "This is restricted to avoid issues.", "Please remove '"..addonName.."'", "and reinstall the original version."}
|
||||
StaticPopupDialogs["QUESTIE_ADDON_NAME_ERROR"] = {
|
||||
text = "|cffff0000ERROR|r\n"..msg[1].."\n"..msg[2].."\n\n"..msg[3].."\n"..msg[4],
|
||||
button2 = "OK",
|
||||
hasEditBox = false,
|
||||
whileDead = true,
|
||||
timeout = 0 -- 335
|
||||
}
|
||||
-- (Removed because Questie-X is meant to be run universally and its folder name is Questie-X)
|
||||
|
||||
C_Timer.After(4, function()
|
||||
DEFAULT_CHAT_FRAME:AddMessage("---------------------------------")
|
||||
DEFAULT_CHAT_FRAME:AddMessage("|cffff0000ERROR|r: |cff42f5ad"..msg[1].."|r")
|
||||
DEFAULT_CHAT_FRAME:AddMessage("|cffff0000ERROR|r: |cff42f5ad"..msg[2].."|r")
|
||||
DEFAULT_CHAT_FRAME:AddMessage("|cffff0000ERROR|r: |cff42f5ad"..msg[3].."|r")
|
||||
DEFAULT_CHAT_FRAME:AddMessage("|cffff0000ERROR|r: |cff42f5ad"..msg[4].."|r")
|
||||
DEFAULT_CHAT_FRAME:AddMessage("---------------------------------")
|
||||
error("ERROR: "..msg[1].." "..msg[2].." "..msg[3])
|
||||
end)
|
||||
StaticPopup_Show("QUESTIE_ADDON_NAME_ERROR")
|
||||
return
|
||||
end
|
||||
|
||||
if Questie then
|
||||
C_Timer.After(4, function()
|
||||
error("ERROR!! -> Questie already loaded! Please only have one Questie installed!")
|
||||
for _=1, 10 do
|
||||
DEFAULT_CHAT_FRAME:AddMessage("|cFFFF0000ERROR!!|r -> Questie already loaded! Please only have one Questie installed!")
|
||||
end
|
||||
end);
|
||||
error("ERROR!! -> Questie already loaded! Please only have one Questie installed!")
|
||||
DEFAULT_CHAT_FRAME:AddMessage("|cFFFF0000ERROR!!|r -> Questie already loaded! Please only have one Questie installed!")
|
||||
Questie = {}
|
||||
return
|
||||
end
|
||||
|
||||
--Initialized below
|
||||
---@class Questie : AceAddon, AceConsole-3.0, AceEvent-3.0, AceTimer-3.0, AceComm-3.0, AceBucket-3.0
|
||||
Questie = LibStub("AceAddon-3.0"):NewAddon("Questie", "AceConsole-3.0", "AceEvent-3.0", "AceTimer-3.0", "AceComm-3.0", "AceBucket-3.0")
|
||||
-- In Questie-X, the Questie object is created early by QuestieLoader.
|
||||
-- We use that existing object here to ensure all modules share the same instance.
|
||||
local function InitializeQuestie()
|
||||
local existingQuestie = QuestieLoader:ImportModule("Questie")
|
||||
|
||||
local ok, err = pcall(function()
|
||||
LibStub("AceAddon-3.0"):NewAddon(existingQuestie, addonName, "AceConsole-3.0", "AceEvent-3.0", "AceTimer-3.0", "AceComm-3.0", "AceBucket-3.0")
|
||||
end)
|
||||
if not ok then
|
||||
Questie:Error("ERROR inside NewAddon: " .. tostring(err))
|
||||
end
|
||||
|
||||
-- Ensure the global reference points to our unified object
|
||||
_G.Questie = existingQuestie
|
||||
return existingQuestie
|
||||
end
|
||||
|
||||
Questie = InitializeQuestie()
|
||||
|
||||
-- preinit placeholder to stop tukui crashing from literally force-removing one of our features no matter what users select in the config ui
|
||||
Questie.db = {profile={minimap={hide=false}}}
|
||||
|
||||
Reference in New Issue
Block a user