Enable decompilation of Locals block

This commit is contained in:
Yoshi Askharoun
2025-07-18 20:01:49 -05:00
parent b72918726b
commit e9c75074ee
2 changed files with 16 additions and 1 deletions
+7
View File
@@ -54,6 +54,9 @@ public partial class Decompiler
if (export.InitializePropertiesOffset is not uint.MaxValue)
AnalyzeMethodForInit(export.InitializePropertiesOffset, xExport, export, name + "_prop");
if (export.InitializeLocalsInputOffset is not uint.MaxValue)
AnalyzeMethodForInit(export.InitializeLocalsInputOffset, xExport, export, name + "_locl");
if (export.InitialEvaluateOffsets is { Length: > 0 })
{
XElement xScripts = new(_nsUix + "Scripts");
@@ -205,6 +208,10 @@ public partial class Decompiler
PropertyListAddOnXElement(targetInstance2, targetListProperty, IrisObject.Create(valueToAdd, null, _context));
break;
case OpCode.ConstructListenerStorage:
var listenerCount = (ushort)instruction.Operands.First().Value;
break;
}
}
catch (Exception ex)
+9 -1
View File
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-16"?>
<UIX xmlns="http://schemas.microsoft.com/2007/uix">
<UIX xmlns="http://schemas.microsoft.com/2007/uix" xmlns:signInDialog="res://ZuneShellResources!SignInDialog.uix" xmlns:schema="res://ZuneShellResources!LibraryData.schema.xml">
<Class Name="AddToCollection">
<Properties>
<List List="{null}" Name="Items" />
@@ -7,5 +7,13 @@
<Command Name="Start" />
<Command Command="{null}" Name="OnSuccess" />
</Properties>
<Locals>
<signInDialog:SignInDialog SignInDialog="{null}" Name="SignInDialog" />
<Command Name="BuildAddListPhase" />
<Command Name="AddPhase" />
<List Name="AddList" />
<schema:LibraryPlaylistContentQuery Enabled="false" Name="Query" />
<Boolean Boolean="false" Name="ContentNotInLibrary" />
</Locals>
</Class>
</UIX>