Enable final evaluate offsets as TODO

This commit is contained in:
Yoshi Askharoun
2025-08-02 21:37:34 -05:00
parent f82630c6c1
commit ad64ca47d7
+11 -1
View File
@@ -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 })