Skip to content

Commit a778f6b

Browse files
romracerStanzilla
authored andcommitted
Fix CvarUtil pattern matching
Seems like all the different clients have slightly different SharedXML/CvarUtil now. This should catch anything SharedXML/CvarUtil.lua or SharedXML/ClassicCvarUtil.lua (SoD) or Blizzard_SharedXML/CvarUtil.lua (Cata Classic) now. Fixes #80
1 parent 1cb6b7e commit a778f6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

browser.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ local function TraceCVar(cvar, value, ...)
6969
lineNum = "(unhandled exception)"
7070
end
7171
end
72-
-- Ignore C_CVar.SetCVar hook if it originated from CvarUtil.lua
73-
if source and not source:lower():find("[\\/]sharedxml[\\/]cvarutil%.lua") then
72+
-- Ignore C_CVar.SetCVar hook if it originated from CvarUtil.lua or ClassicCvarUtil.lua
73+
if source and not (source:lower():find("[_\\/]sharedxml[\\/]cvarutil%.lua") or source:lower():find("[_\\/]sharedxml[\\/]classiccvarutil%.lua")) then
7474
local realValue = GetCVar(cvar) -- the client does some conversions to the original value
7575
if SVLoaded then
7676
AdvancedInterfaceOptionsSaved.ModifiedCVars[ cvar:lower() ] = source .. ':' .. lineNum

0 commit comments

Comments
 (0)