From ad64ca47d7ef28202b87a09a22c98b828a82686c Mon Sep 17 00:00:00 2001 From: Yoshi Askharoun Date: Sat, 2 Aug 2025 21:37:34 -0500 Subject: [PATCH] Enable final evaluate offsets as TODO --- libs/UIX.DecompXml/Decompiler.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libs/UIX.DecompXml/Decompiler.cs b/libs/UIX.DecompXml/Decompiler.cs index eadc157..aecfdb0 100644 --- a/libs/UIX.DecompXml/Decompiler.cs +++ b/libs/UIX.DecompXml/Decompiler.cs @@ -81,7 +81,17 @@ public partial class Decompiler if (export.FinalEvaluateOffsets is { Length: > 0 }) { - throw new NotImplementedException(); + var xScripts = GetOrCreateElement(xExport, _nsUix + "Scripts"); + + foreach (var offset in export.FinalEvaluateOffsets) + { + var syntaxTree = DecompileScript(offset, export); + var scriptText = FormatScript(syntaxTree); + + XElement xScript = new(_nsUix + "Script", scriptText); + xScripts.Add(new XComment("TODO: FinalEvaluateOffsets")); + xScripts.Add(xScript); + } } if (export.Methods is { Length: > 0 })