Skip to content

Commit 371d279

Browse files
romracerStanzilla
romracer
authored andcommitted
Add additional SharedXML paths from TWW and SoD phase 4
1 parent f6dffc6 commit 371d279

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

browser.lua

+6-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,12 @@ local function TraceCVar(cvar, value, ...)
7070
lineNum = "(unhandled exception)"
7171
end
7272
end
73-
-- Ignore C_CVar.SetCVar hook if it originated from CvarUtil.lua or ClassicCvarUtil.lua
74-
if source and not (source:lower():find("[_\\/]sharedxml[\\/]cvarutil%.lua") or source:lower():find("[_\\/]sharedxml[\\/]classiccvarutil%.lua")) then
73+
-- Ignore C_CVar.SetCVar hook if it originated from ourselves or CvarUtil.lua or ClassicCvarUtil.lua
74+
if source and not (source:lower():find("[\\/]advancedinterfaceoptions[\\/]") or
75+
source:lower():find("[_\\/]sharedxmlbase[\\/]cvarutil%.lua") or
76+
source:lower():find("[_\\/]sharedxml[\\/]cvarutil%.lua") or
77+
source:lower():find("[_\\/]sharedxml[\\/]classiccvarutil%.lua") or
78+
source:lower():find("[_\\/]sharedxml[\\/]classic[\\/]classiccvarutil%.lua")) then
7579
local realValue = GetCVar(cvar) -- the client does some conversions to the original value
7680
if SVLoaded then
7781
AdvancedInterfaceOptionsSaved.ModifiedCVars[cvar:lower()] = source .. ":" .. lineNum

0 commit comments

Comments
 (0)