perf: batch learner updates and remove Turtle support
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
-- Shim for Lua 5.2+ (Retail) where table.getn was removed.
|
||||
-- We cannot use the '#' length operator directly because Lua 5.0 (Turtle WoW)
|
||||
-- We cannot use the '#' length operator directly because Lua 5.0
|
||||
-- will trigger a compile-time syntax error parsing the file.
|
||||
-- Using loadstring bypasses the 5.0 compiler and safely injects the # operator in 5.2+.
|
||||
if not table.getn then
|
||||
@@ -19,7 +19,7 @@ if not math.mod then
|
||||
end
|
||||
end
|
||||
|
||||
-- Shim for Lua 5.0 (Turtle WoW) where string.match is missing.
|
||||
-- Shim for Lua 5.0 where string.match is missing.
|
||||
-- Supports up to 5 captures (sufficient for all Questie uses).
|
||||
if not string.match then
|
||||
string.match = function(str, pattern, init)
|
||||
@@ -41,7 +41,7 @@ if not string.gmatch then
|
||||
string.gmatch = string.gfind
|
||||
end
|
||||
|
||||
-- Shim for Lua 5.0 (Turtle WoW) where select() was not yet implemented.
|
||||
-- Shim for Lua 5.0 where select() was not yet implemented.
|
||||
-- Fix #7: The original used a `while n > 0` loop that never decremented n,
|
||||
-- making the loop body run exactly once before returning. Use a plain
|
||||
-- sequential block instead so the intent is obvious.
|
||||
@@ -136,4 +136,3 @@ function Questie:Colorize(str, color)
|
||||
-- Initial stub: just return the string without color or with basic color
|
||||
return str
|
||||
end
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ function QuestiePluginAPI:HasPendingPlugins()
|
||||
return self.pendingPluginsCount > 0
|
||||
end
|
||||
|
||||
--- Returns the flavor key of the loaded DB plugin ("WotLK", "Classic", "TBC", "Turtle", "Ascension", etc.)
|
||||
--- Returns the flavor key of the loaded DB plugin ("WotLK", "Classic", "TBC", "Ascension", etc.)
|
||||
---@return string|nil
|
||||
function QuestiePluginAPI:GetLoadedFlavor()
|
||||
return self.loadedDBFlavor
|
||||
@@ -276,7 +276,7 @@ function QuestiePlugin:InjectUiMapData(customUiMapData)
|
||||
end
|
||||
|
||||
--- Signals that the plugin has finished loading. This automatically cleans up necessary caches.
|
||||
---@param flavorKey string|nil Optional flavor label e.g. "WotLK", "Classic", "Turtle"
|
||||
---@param flavorKey string|nil Optional flavor label e.g. "WotLK", "Classic", "Ascension"
|
||||
function QuestiePlugin:FinishLoading(flavorKey)
|
||||
local QuestieDB = QuestieLoader:ImportModule("QuestieDB")
|
||||
if not QuestieDB then
|
||||
|
||||
Reference in New Issue
Block a user