Bugfixes: Removed retail API calls, ran linting script and static analysis.

This commit is contained in:
Bluewhale1337
2026-07-25 00:42:46 +02:00
parent 390067cdbd
commit c51cfa3f73
15 changed files with 65 additions and 28 deletions
+7 -5
View File
@@ -96,7 +96,9 @@ function HookScript(frame, scriptName, handler)
handler(this)
end)
else
frame:SetScript(scriptName, handler)
frame:SetScript(scriptName, function()
handler(this)
end)
end
end
@@ -112,11 +114,11 @@ function hooksecurefunc(a1, a2, a3)
local original_func = a1[a2]
a1[a2] = function(...)
local original_return = {original_func(unpack(arg))}
a3(unpack(arg))
a1[a2] = function(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)
local r1, r2, r3, r4, r5, r6, r7, r8, r9, r10 = original_func(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)
a3(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t)
return unpack(original_return)
return r1, r2, r3, r4, r5, r6, r7, r8, r9, r10
end
end