feat: release v1.4.6 - Fix SavedVariables persistence and red textures for MafWow/3.3.5a

This commit is contained in:
Xurkon
2026-03-22 08:30:20 -05:00
parent d342fd3461
commit 6e34cebead
40 changed files with 654 additions and 558 deletions
+3 -1
View File
@@ -1,5 +1,6 @@
local GetAddOnMetadata = C_AddOns and C_AddOns.GetAddOnMetadata or GetAddOnMetadata
---@class QuestieLib
local QuestieLib = QuestieLoader:CreateModule("QuestieLib")
@@ -13,7 +14,8 @@ local l10n = QuestieLoader:ImportModule("l10n")
--- COMPATIBILITY ---
local addonName = QuestieLoader.addonName
QuestieLib.AddonPath = "Interface\\Addons\\"..addonName.."\\"
QuestieLib.AddonPath = "Interface\\Addons\\" .. addonName .. "\\"
local math_abs = math.abs
local math_sqrt = math.sqrt
+26 -3
View File
@@ -76,9 +76,6 @@ function QuestieLoader:CreateModule(name)
if modules[name] and modules[name]._defined then
-- Print a debug message rather than hard-error so it doesn't break live servers
-- even if another file accidentally calls CreateModule twice.
if Questie and Questie.Debug then
Questie:Debug(1, "[QuestieLoader] WARNING: CreateModule called twice for '" .. tostring(name) .. "'. Using existing module.")
end
return modules[name]
end
if not modules[name] then
@@ -114,3 +111,29 @@ function QuestieLoader:PopulateGlobals() -- called when debugging is enabled
end
end
-- Initialize Questie object early to avoid nil errors during loading
local Questie = QuestieLoader:CreateModule("Questie")
_G.Questie = Questie
-- Initial stubs for Debug and Colorize so early calls don't crash
Questie.DEBUG_CRITICAL = 1
Questie.DEBUG_ELEVATED = 2
Questie.DEBUG_INFO = 4
Questie.DEBUG_DEVELOP = 8
Questie.DEBUG_SPAM = 16
Questie.DEBUG_LEARNER = 32
Questie.DEBUG_COMMS = 64
function Questie:Debug(level, ...)
-- Initial stub: just print to chat if it's a critical message
-- This will be replaced by the real Questie:Debug in Questie.lua
if level == Questie.DEBUG_CRITICAL then
print("|cFFFFFF00[Questie-X Pre-Init Debug]|r", ...)
end
end
function Questie:Colorize(str, color)
-- Initial stub: just return the string without color or with basic color
return str
end
+8
View File
@@ -48,6 +48,14 @@ function QuestiePluginAPI:RegisterPlugin(pluginName)
self.registeredPlugins[pluginName] = plugin
Questie:Debug(Questie.DEBUG_INFO, "[QuestiePluginAPI] Successfully registered plugin: " .. pluginName)
if pluginName == "WotLKDB" and Questie.wotlkStatsCache then
Questie:Debug(Questie.DEBUG_INFO, "[QuestiePluginAPI] Applying cached WotLK stats...")
plugin.stats.QUEST = Questie.wotlkStatsCache.QUEST or 0
plugin.stats.NPC = Questie.wotlkStatsCache.NPC or 0
plugin.stats.OBJECT = Questie.wotlkStatsCache.OBJECT or 0
plugin.stats.ITEM = Questie.wotlkStatsCache.ITEM or 0
end
return plugin
end