Skip to content

Commit fcc13ba

Browse files
committed
#1965 Forks for Variables and Macros
1 parent f24c6ef commit fcc13ba

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

GSE/API/Storage.lua

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2634,7 +2634,9 @@ function GSE.UpdateVariable(variable, name, status)
26342634
end
26352635
GSE.ComputeVariableDependencies(variable)
26362636
local compressedvariable = GSE.EncodeMessage(variable)
2637-
GSEVariables[name] = compressedvariable
2637+
if not (GSE.UpdateDeltaFork and GSE.UpdateDeltaFork(variable)) then
2638+
GSEVariables[name] = compressedvariable
2639+
end
26382640
local actualfunct, error = gseLoadstring("return " .. variable.funct)
26392641
if error then
26402642
--@debug@
@@ -2772,11 +2774,13 @@ function GSE.UpdateMacro(node, category, skipStore)
27722774
else
27732775
node.value = CreateMacro(node.name, node.icon, node.text, category)
27742776
if not skipStore then
2775-
if category then
2776-
local char, realm = UnitFullName("player")
2777-
GSEMacros[char .. "-" .. realm][node.name] = node
2778-
else
2779-
GSEMacros[node.name] = node
2777+
if not (GSE.UpdateDeltaFork and GSE.UpdateDeltaFork(node)) then
2778+
if category then
2779+
local char, realm = UnitFullName("player")
2780+
GSEMacros[char .. "-" .. realm][node.name] = node
2781+
else
2782+
GSEMacros[node.name] = node
2783+
end
27802784
end
27812785
end
27822786
end

0 commit comments

Comments
 (0)