mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
More inline scripts, shared classes
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
"UIXC": {
|
"UIXC": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
|
|
||||||
"commandLineArgs": "decompile E:\\Repos\\ZuneDev\\ZuneUIXTools\\test\\ADDTOCOLLECTION.31_48.UIB -l xml -A ZuneShell.dll -A UIXControls.dll -A ZuneDBApi.dll -o E:\\Repos\\ZuneDev\\ZuneUIXTools\\test",
|
"commandLineArgs": "decompile E:\\Repos\\ZuneDev\\ZuneUIXTools\\test\\4.8\\STYLES.UIB -l xml -A ZuneShell.dll -A UIXControls.dll -A ZuneDBApi.dll -o E:\\Repos\\ZuneDev\\ZuneUIXTools\\test",
|
||||||
//"commandLineArgs": "compile E:\\Repos\\ZuneDev\\ZuneUIXTools\\test\\ADDTOCOLLECTION.31_48.UIX -A ZuneShell.dll -A UIXControls.dll -A ZuneDBApi.dll -o E:\\Repos\\ZuneDev\\ZuneUIXTools\\test",
|
//"commandLineArgs": "compile E:\\Repos\\ZuneDev\\ZuneUIXTools\\test\\ADDTOCOLLECTION.31_48.UIX -A ZuneShell.dll -A UIXControls.dll -A ZuneDBApi.dll -o E:\\Repos\\ZuneDev\\ZuneUIXTools\\test",
|
||||||
|
|
||||||
//"commandLineArgs": "decompile E:\\Documents\\REProj\\Zune\\Resources\\ZuneShellResources48\\ABOUTDIALOG.UIX -l xml -A ZuneShell.dll -A UIXControls.dll -A ZuneDBApi.dll -o E:\\Documents\\REProj\\Zune\\Resources\\ZuneShellResources48_xml -t E:\\Documents\\REProj\\Zune\\Resources\\ZuneShellResources48\\_DATATABLE.uib",
|
//"commandLineArgs": "decompile E:\\Documents\\REProj\\Zune\\Resources\\ZuneShellResources48\\ABOUTDIALOG.UIX -l xml -A ZuneShell.dll -A UIXControls.dll -A ZuneDBApi.dll -o E:\\Documents\\REProj\\Zune\\Resources\\ZuneShellResources48_xml -t E:\\Documents\\REProj\\Zune\\Resources\\ZuneShellResources48\\_DATATABLE.uib",
|
||||||
|
|||||||
+1
-1
Submodule libs/MicrosoftIris updated: 32555f355c...1667d353c2
@@ -78,6 +78,8 @@ internal class DecompileContext
|
|||||||
|
|
||||||
public PropertySchema GetImportedProperty(Operand op) => ImportTables.PropertyImports[(ushort)op.Value];
|
public PropertySchema GetImportedProperty(Operand op) => ImportTables.PropertyImports[(ushort)op.Value];
|
||||||
|
|
||||||
|
public ConstructorSchema GetImportedConstructor(Operand op) => ImportTables.ConstructorImports[(ushort)op.Value];
|
||||||
|
|
||||||
public IEnumerable<Instruction> GetMethodBody(uint startOffset)
|
public IEnumerable<Instruction> GetMethodBody(uint startOffset)
|
||||||
{
|
{
|
||||||
foreach (var instruction in Instructions.SkipWhile(i => i.Offset < startOffset))
|
foreach (var instruction in Instructions.SkipWhile(i => i.Offset < startOffset))
|
||||||
@@ -111,7 +113,14 @@ internal class DecompileContext
|
|||||||
{
|
{
|
||||||
var prefix = MapNamespaceToPrefix(schema.Owner.Uri);
|
var prefix = MapNamespaceToPrefix(schema.Owner.Uri);
|
||||||
var ns = _namespaces[prefix ?? ""];
|
var ns = _namespaces[prefix ?? ""];
|
||||||
return ns + schema.Name;
|
|
||||||
|
// Strip potential generic type parameters
|
||||||
|
var name = schema.Name;
|
||||||
|
var genericIndex = name.IndexOf('`');
|
||||||
|
if (genericIndex > 0)
|
||||||
|
name = name[..genericIndex];
|
||||||
|
|
||||||
|
return ns + name;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void GenerateNamespaces()
|
private void GenerateNamespaces()
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using Microsoft.CodeAnalysis;
|
using Microsoft.CodeAnalysis;
|
||||||
using Microsoft.CodeAnalysis.CSharp;
|
using Microsoft.CodeAnalysis.CSharp;
|
||||||
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
||||||
|
using Microsoft.Iris.Asm.Models;
|
||||||
using Microsoft.Iris.DecompXml.Mock;
|
using Microsoft.Iris.DecompXml.Mock;
|
||||||
using Microsoft.Iris.Markup;
|
using Microsoft.Iris.Markup;
|
||||||
using Microsoft.Iris.Markup.UIX;
|
using Microsoft.Iris.Markup.UIX;
|
||||||
@@ -67,18 +68,9 @@ partial class Decompiler
|
|||||||
stack.Pop();
|
stack.Pop();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OpCode.ConstructObject:
|
|
||||||
var typeToCtor = _context.GetImportedType(instruction.Operands.First());
|
|
||||||
stack.Push(ObjectCreationExpression(
|
|
||||||
IrisExpression.ToSyntax(typeToCtor, _context),
|
|
||||||
ArgumentList(),
|
|
||||||
null
|
|
||||||
));
|
|
||||||
break;
|
|
||||||
|
|
||||||
case OpCode.LookupSymbol:
|
case OpCode.LookupSymbol:
|
||||||
var symbolIndex = (ushort)instruction.Operands.First().Value;
|
var symbolIndex = (ushort)instruction.Operands.ElementAt(0).Value;
|
||||||
stack.Push(IrisExpression.ToSyntax(export.SymbolReferenceTable[symbolIndex]));
|
stack.Push(export.SymbolReferenceTable[symbolIndex]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OpCode.WriteSymbol:
|
case OpCode.WriteSymbol:
|
||||||
@@ -96,75 +88,6 @@ partial class Decompiler
|
|||||||
blockStack.Peek().Statements.Add(ExpressionStatement(symbolAssignmentExpr));
|
blockStack.Peek().Statements.Add(ExpressionStatement(symbolAssignmentExpr));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OpCode.MethodInvoke:
|
|
||||||
case OpCode.MethodInvokePeek:
|
|
||||||
case OpCode.MethodInvokeStatic:
|
|
||||||
case OpCode.MethodInvokePushLastParam:
|
|
||||||
case OpCode.MethodInvokeStaticPushLastParam:
|
|
||||||
var methodSchema = _context.GetImportedMethod(instruction.Operands.First());
|
|
||||||
|
|
||||||
int parameterCount = methodSchema.ParameterTypes.Length;
|
|
||||||
var parameters = new ArgumentSyntax[parameterCount];
|
|
||||||
for (parameterCount--; parameterCount >= 0; parameterCount--)
|
|
||||||
{
|
|
||||||
var parameter = IrisExpression.ToSyntax(stack.Pop(), _context);
|
|
||||||
parameters[parameterCount] = Argument(parameter);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool isStatic = opCode is OpCode.MethodInvokeStatic or OpCode.MethodInvokeStaticPushLastParam;
|
|
||||||
bool peek = opCode is OpCode.MethodInvokePeek;
|
|
||||||
bool pushLastParam = opCode is OpCode.MethodInvokePushLastParam or OpCode.MethodInvokeStaticPushLastParam;
|
|
||||||
|
|
||||||
var targetObj = opCode switch
|
|
||||||
{
|
|
||||||
OpCode.MethodInvokeStatic or
|
|
||||||
OpCode.MethodInvokeStaticPushLastParam => methodSchema.Owner,
|
|
||||||
_ when peek => stack.Peek(),
|
|
||||||
_ => stack.Pop(),
|
|
||||||
};
|
|
||||||
|
|
||||||
var methodExpression = MemberAccessExpression(SyntaxKind.SimpleMemberAccessExpression,
|
|
||||||
IrisExpression.ToSyntax(targetObj, _context),
|
|
||||||
IdentifierName(methodSchema.Name)
|
|
||||||
);
|
|
||||||
|
|
||||||
var methodResult = InvocationExpression(methodExpression, ArgumentList([.. parameters]));
|
|
||||||
|
|
||||||
if (methodSchema.ReturnType != VoidSchema.Type)
|
|
||||||
{
|
|
||||||
stack.Push(methodResult);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
blockStack.Peek().Statements.Add(ExpressionStatement(methodResult));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pushLastParam)
|
|
||||||
{
|
|
||||||
stack.Push(parameters[^1].Expression);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
|
|
||||||
case OpCode.PropertyGet:
|
|
||||||
case OpCode.PropertyGetPeek:
|
|
||||||
case OpCode.PropertyGetStatic:
|
|
||||||
var propToGet = _context.GetImportedProperty(instruction.Operands.First());
|
|
||||||
|
|
||||||
var propGetTarget = instruction.OpCode switch
|
|
||||||
{
|
|
||||||
OpCode.PropertyGet => stack.Pop(),
|
|
||||||
OpCode.PropertyGetPeek => stack.Peek(),
|
|
||||||
_ => propToGet.Owner,
|
|
||||||
};
|
|
||||||
|
|
||||||
var propertyGetExpression = MemberAccessExpression(SyntaxKind.SimpleMemberAccessExpression,
|
|
||||||
IrisExpression.ToSyntax(propGetTarget, _context),
|
|
||||||
IdentifierName(propToGet.Name)
|
|
||||||
);
|
|
||||||
|
|
||||||
stack.Push(propertyGetExpression);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case OpCode.PropertyAssign:
|
case OpCode.PropertyAssign:
|
||||||
case OpCode.PropertyAssignStatic:
|
case OpCode.PropertyAssignStatic:
|
||||||
var propToSet = _context.GetImportedProperty(instruction.Operands.First());
|
var propToSet = _context.GetImportedProperty(instruction.Operands.First());
|
||||||
@@ -241,7 +164,175 @@ partial class Decompiler
|
|||||||
blockStack.Push(ifBlock);
|
blockStack.Push(ifBlock);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
if (!TryDecompileExpression(instruction, stack, blockStack))
|
||||||
|
throw new NotImplementedException();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new Exception($"Failed to decompile instruction `{instruction}` @ 0x{instruction.Offset:X} in script for {export.Name}", ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (blockStack.Count > 1)
|
||||||
|
throw new InvalidOperationException($"Failed to decompile script for {export.Name}, more than one top-level code block");
|
||||||
|
else if (blockStack.Count < 0)
|
||||||
|
throw new InvalidOperationException($"Failed to decompile script for {export.Name}, no top-level code blocks");
|
||||||
|
|
||||||
|
// Unwrap top-most block to avoid extra curly braces around entire script
|
||||||
|
var topBlock = blockStack.Pop();
|
||||||
|
|
||||||
|
return SyntaxTree(
|
||||||
|
CompilationUnit().WithMembers(
|
||||||
|
[..topBlock.Statements.Select(GlobalStatement)]
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string FormatInlineExpression(ExpressionSyntax expr, CancellationToken token = default)
|
||||||
|
{
|
||||||
|
var exprStr = expr
|
||||||
|
.NormalizeWhitespace()
|
||||||
|
.SyntaxTree
|
||||||
|
.GetText(token)
|
||||||
|
.ToString();
|
||||||
|
return '{' + exprStr + '}';
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string FormatScript(SyntaxTree tree, CancellationToken token = default)
|
||||||
|
{
|
||||||
|
return tree
|
||||||
|
.GetRoot(token)
|
||||||
|
.NormalizeWhitespace()
|
||||||
|
.SyntaxTree
|
||||||
|
.GetText(token)
|
||||||
|
.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
private static void AddStatementToBlock(Stack<BlockSyntax> blockStack, StatementSyntax statement)
|
||||||
|
{
|
||||||
|
var block = blockStack.Pop();
|
||||||
|
block = block.AddStatements(statement);
|
||||||
|
blockStack.Push(block);
|
||||||
|
}
|
||||||
|
|
||||||
|
private bool TryDecompileExpression(Instruction instruction, Stack<object> stack, Stack<CodeBlockInfo> blockStack = null)
|
||||||
|
{
|
||||||
|
var opCode = instruction.OpCode;
|
||||||
|
|
||||||
|
switch (opCode)
|
||||||
|
{
|
||||||
|
case OpCode.ConstructObject:
|
||||||
|
case OpCode.ConstructObjectParam:
|
||||||
|
var typeToCtor = _context.GetImportedType(instruction.Operands.First());
|
||||||
|
|
||||||
|
List<ArgumentSyntax> ctorParameters = [];
|
||||||
|
if (opCode is OpCode.ConstructObjectParam)
|
||||||
|
{
|
||||||
|
var ctorSchema = _context.GetImportedConstructor(instruction.Operands.ElementAt(1));
|
||||||
|
|
||||||
|
int ctorParameterCount = ctorSchema.ParameterTypes.Length;
|
||||||
|
ctorParameters.Capacity = ctorParameterCount;
|
||||||
|
|
||||||
|
for (ctorParameterCount--; ctorParameterCount >= 0; ctorParameterCount--)
|
||||||
|
{
|
||||||
|
var parameter = IrisExpression.ToSyntax(stack.Pop(), _context);
|
||||||
|
ctorParameters.Add(Argument(parameter));
|
||||||
|
}
|
||||||
|
ctorParameters.Reverse();
|
||||||
|
}
|
||||||
|
|
||||||
|
stack.Push(ObjectCreationExpression(
|
||||||
|
IrisExpression.ToSyntax(typeToCtor, _context),
|
||||||
|
ArgumentList([..ctorParameters]),
|
||||||
|
null
|
||||||
|
));
|
||||||
|
break;
|
||||||
|
|
||||||
|
case OpCode.MethodInvoke:
|
||||||
|
case OpCode.MethodInvokePeek:
|
||||||
|
case OpCode.MethodInvokeStatic:
|
||||||
|
case OpCode.MethodInvokePushLastParam:
|
||||||
|
case OpCode.MethodInvokeStaticPushLastParam:
|
||||||
|
var methodSchema = _context.GetImportedMethod(instruction.Operands.First());
|
||||||
|
|
||||||
|
int parameterCount = methodSchema.ParameterTypes.Length;
|
||||||
|
var parameters = new ArgumentSyntax[parameterCount];
|
||||||
|
for (parameterCount--; parameterCount >= 0; parameterCount--)
|
||||||
|
{
|
||||||
|
var parameter = IrisExpression.ToSyntax(stack.Pop(), _context);
|
||||||
|
parameters[parameterCount] = Argument(parameter);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool isStatic = opCode is OpCode.MethodInvokeStatic or OpCode.MethodInvokeStaticPushLastParam;
|
||||||
|
bool peek = opCode is OpCode.MethodInvokePeek;
|
||||||
|
bool pushLastParam = opCode is OpCode.MethodInvokePushLastParam or OpCode.MethodInvokeStaticPushLastParam;
|
||||||
|
|
||||||
|
var targetObj = opCode switch
|
||||||
|
{
|
||||||
|
OpCode.MethodInvokeStatic or
|
||||||
|
OpCode.MethodInvokeStaticPushLastParam => methodSchema.Owner,
|
||||||
|
_ when peek => stack.Peek(),
|
||||||
|
_ => stack.Pop(),
|
||||||
|
};
|
||||||
|
|
||||||
|
var methodExpression = MemberAccessExpression(SyntaxKind.SimpleMemberAccessExpression,
|
||||||
|
IrisExpression.ToSyntax(targetObj, _context),
|
||||||
|
IdentifierName(methodSchema.Name)
|
||||||
|
);
|
||||||
|
|
||||||
|
var methodResult = InvocationExpression(methodExpression, ArgumentList([.. parameters]));
|
||||||
|
|
||||||
|
if (methodSchema.ReturnType != VoidSchema.Type)
|
||||||
|
{
|
||||||
|
stack.Push(methodResult);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
blockStack?.Peek().Statements.Add(ExpressionStatement(methodResult));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pushLastParam)
|
||||||
|
{
|
||||||
|
stack.Push(parameters[^1].Expression);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case OpCode.PropertyGet:
|
||||||
|
case OpCode.PropertyGetPeek:
|
||||||
|
case OpCode.PropertyGetStatic:
|
||||||
|
var propToGet = _context.GetImportedProperty(instruction.Operands.First());
|
||||||
|
|
||||||
|
var propGetTarget = instruction.OpCode switch
|
||||||
|
{
|
||||||
|
OpCode.PropertyGet => stack.Pop(),
|
||||||
|
OpCode.PropertyGetPeek => stack.Peek(),
|
||||||
|
_ => propToGet.Owner,
|
||||||
|
};
|
||||||
|
|
||||||
|
var propertyGetExpression = MemberAccessExpression(SyntaxKind.SimpleMemberAccessExpression,
|
||||||
|
IrisExpression.ToSyntax(propGetTarget, _context),
|
||||||
|
IdentifierName(propToGet.Name)
|
||||||
|
);
|
||||||
|
|
||||||
|
stack.Push(propertyGetExpression);
|
||||||
|
break;
|
||||||
|
|
||||||
case OpCode.Operation:
|
case OpCode.Operation:
|
||||||
|
DecompileOperation(instruction, stack);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
private ExpressionSyntax DecompileOperation(Instruction instruction, Stack<object> stack)
|
||||||
|
{
|
||||||
var opHost = _context.GetImportedType(instruction.Operands.ElementAt(0));
|
var opHost = _context.GetImportedType(instruction.Operands.ElementAt(0));
|
||||||
|
|
||||||
var op = (OperationType)(int)(byte)instruction.Operands.ElementAt(1).Value;
|
var op = (OperationType)(int)(byte)instruction.Operands.ElementAt(1).Value;
|
||||||
@@ -268,45 +359,7 @@ partial class Decompiler
|
|||||||
}
|
}
|
||||||
|
|
||||||
stack.Push(operationExpr);
|
stack.Push(operationExpr);
|
||||||
break;
|
return operationExpr;
|
||||||
}
|
|
||||||
}
|
|
||||||
catch (Exception ex)
|
|
||||||
{
|
|
||||||
throw new Exception($"Failed to decompile instruction `{instruction}` @ 0x{instruction.Offset:X} in script for {export.Name}", ex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (blockStack.Count > 1)
|
|
||||||
throw new InvalidOperationException($"Failed to decompile script for {export.Name}, more than one top-level code block");
|
|
||||||
else if (blockStack.Count < 0)
|
|
||||||
throw new InvalidOperationException($"Failed to decompile script for {export.Name}, no top-level code blocks");
|
|
||||||
|
|
||||||
// Unwrap top-most block to avoid extra curly braces around entire script
|
|
||||||
var topBlock = blockStack.Pop();
|
|
||||||
|
|
||||||
return SyntaxTree(
|
|
||||||
CompilationUnit().WithMembers(
|
|
||||||
[..topBlock.Statements.Select(GlobalStatement)]
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static string FormatScript(SyntaxTree tree, CancellationToken token = default)
|
|
||||||
{
|
|
||||||
return tree
|
|
||||||
.GetRoot(token)
|
|
||||||
.NormalizeWhitespace()
|
|
||||||
.SyntaxTree
|
|
||||||
.GetText(token)
|
|
||||||
.ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
private static void AddStatementToBlock(Stack<BlockSyntax> blockStack, StatementSyntax statement)
|
|
||||||
{
|
|
||||||
var block = blockStack.Pop();
|
|
||||||
block = block.AddStatements(statement);
|
|
||||||
blockStack.Push(block);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static SyntaxKind OperationToSyntaxKind(OperationType operation)
|
private static SyntaxKind OperationToSyntaxKind(OperationType operation)
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
using Microsoft.Iris.Asm;
|
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
||||||
|
using Microsoft.Iris.Asm;
|
||||||
|
using Microsoft.Iris.Debug.Data;
|
||||||
using Microsoft.Iris.DecompXml.Mock;
|
using Microsoft.Iris.DecompXml.Mock;
|
||||||
using Microsoft.Iris.Markup;
|
using Microsoft.Iris.Markup;
|
||||||
using System;
|
using System;
|
||||||
@@ -51,6 +53,12 @@ public partial class Decompiler
|
|||||||
xExport.SetAttributeValue("Base", baseTypeName);
|
xExport.SetAttributeValue("Base", baseTypeName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (export is ClassTypeSchema classExport)
|
||||||
|
{
|
||||||
|
if (classExport.IsShared)
|
||||||
|
xExport.SetAttributeValue("Shared", true);
|
||||||
|
}
|
||||||
|
|
||||||
if (export.InitializePropertiesOffset is not uint.MaxValue)
|
if (export.InitializePropertiesOffset is not uint.MaxValue)
|
||||||
AnalyzeMethodForInit(export.InitializePropertiesOffset, xExport, export, name + "_prop");
|
AnalyzeMethodForInit(export.InitializePropertiesOffset, xExport, export, name + "_prop");
|
||||||
|
|
||||||
@@ -59,7 +67,7 @@ public partial class Decompiler
|
|||||||
|
|
||||||
if (export.InitialEvaluateOffsets is { Length: > 0 })
|
if (export.InitialEvaluateOffsets is { Length: > 0 })
|
||||||
{
|
{
|
||||||
XElement xScripts = new(_nsUix + "Scripts");
|
var xScripts = GetOrCreateElement(xExport, _nsUix + "Scripts");
|
||||||
|
|
||||||
foreach (var offset in export.InitialEvaluateOffsets)
|
foreach (var offset in export.InitialEvaluateOffsets)
|
||||||
{
|
{
|
||||||
@@ -69,8 +77,19 @@ public partial class Decompiler
|
|||||||
XElement xScript = new(_nsUix + "Script", scriptText);
|
XElement xScript = new(_nsUix + "Script", scriptText);
|
||||||
xScripts.Add(xScript);
|
xScripts.Add(xScript);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
xExport.Add(xScripts);
|
if (export.RefreshGroupOffsets is { Length: > 0 })
|
||||||
|
{
|
||||||
|
var xScripts = GetOrCreateElement(xExport, _nsUix + "Scripts");
|
||||||
|
|
||||||
|
foreach (var offset in export.RefreshGroupOffsets)
|
||||||
|
{
|
||||||
|
var scriptText = AnalyzeRefreshMethod(offset, export, $"{name}_rfsh_0x{offset:X}");
|
||||||
|
|
||||||
|
XElement xScript = new(_nsUix + "Script", scriptText);
|
||||||
|
xScripts.Add(xScript);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (export.InitializeContentOffset is not uint.MaxValue)
|
if (export.InitializeContentOffset is not uint.MaxValue)
|
||||||
@@ -99,6 +118,7 @@ public partial class Decompiler
|
|||||||
{
|
{
|
||||||
Indent = true,
|
Indent = true,
|
||||||
NamespaceHandling = NamespaceHandling.OmitDuplicates,
|
NamespaceHandling = NamespaceHandling.OmitDuplicates,
|
||||||
|
Encoding = Encoding.UTF8,
|
||||||
};
|
};
|
||||||
|
|
||||||
StringBuilder sb = new();
|
StringBuilder sb = new();
|
||||||
@@ -132,6 +152,10 @@ public partial class Decompiler
|
|||||||
stack.Push(null);
|
stack.Push(null);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case OpCode.PushThis:
|
||||||
|
stack.Push(elemToInit);
|
||||||
|
break;
|
||||||
|
|
||||||
case OpCode.ConstructObject:
|
case OpCode.ConstructObject:
|
||||||
var typeToCtor = _context.GetImportedType(instruction.Operands.ElementAt(0));
|
var typeToCtor = _context.GetImportedType(instruction.Operands.ElementAt(0));
|
||||||
var xObj = new XElement(_context.GetXName(typeToCtor));
|
var xObj = new XElement(_context.GetXName(typeToCtor));
|
||||||
@@ -140,37 +164,7 @@ public partial class Decompiler
|
|||||||
|
|
||||||
case OpCode.LookupSymbol:
|
case OpCode.LookupSymbol:
|
||||||
var symbolIndex = (ushort)instruction.Operands.ElementAt(0).Value;
|
var symbolIndex = (ushort)instruction.Operands.ElementAt(0).Value;
|
||||||
var symbol = initType.SymbolReferenceTable[symbolIndex];
|
stack.Push(initType.SymbolReferenceTable[symbolIndex]);
|
||||||
stack.Push(symbol);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case OpCode.MethodInvokeStatic:
|
|
||||||
var method = _context.GetImportedMethod(instruction.Operands.First());
|
|
||||||
|
|
||||||
int parameterCount = method.ParameterTypes.Length;
|
|
||||||
object[] parameters = new object[parameterCount];
|
|
||||||
for (parameterCount--; parameterCount >= 0; parameterCount--)
|
|
||||||
parameters[parameterCount] = stack.Pop();
|
|
||||||
|
|
||||||
var callExpression = new IrisMethodCallExpression(method, null, parameters.Select(IrisExpression.Wrap));
|
|
||||||
|
|
||||||
stack.Push(callExpression);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case OpCode.PropertyGet:
|
|
||||||
case OpCode.PropertyGetPeek:
|
|
||||||
case OpCode.PropertyGetStatic:
|
|
||||||
var propToGet = _context.GetImportedProperty(instruction.Operands.ElementAt(0));
|
|
||||||
|
|
||||||
var propTarget = instruction.OpCode switch
|
|
||||||
{
|
|
||||||
OpCode.PropertyGet => IrisExpression.Wrap(stack.Pop()),
|
|
||||||
OpCode.PropertyGetPeek => IrisExpression.Wrap(stack.Peek()),
|
|
||||||
_ => null,
|
|
||||||
};
|
|
||||||
|
|
||||||
var propertyGetExpression = new IrisPropertyExpression(propToGet, propTarget);
|
|
||||||
stack.Push(propertyGetExpression);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OpCode.PropertyInitialize:
|
case OpCode.PropertyInitialize:
|
||||||
@@ -178,7 +172,11 @@ public partial class Decompiler
|
|||||||
var newPropValue = stack.Pop();
|
var newPropValue = stack.Pop();
|
||||||
|
|
||||||
var target = stack.Pop();
|
var target = stack.Pop();
|
||||||
var xTarget = (XElement)ToXmlFriendlyObject(target);
|
var xTarget = ToXmlFriendlyObject(target) as XElement;
|
||||||
|
if (xTarget is null)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
PropertyAssignOnXElement(xTarget, propertyToInit, IrisObject.Create(newPropValue, propertyToInit.PropertyType, _context));
|
PropertyAssignOnXElement(xTarget, propertyToInit, IrisObject.Create(newPropValue, propertyToInit.PropertyType, _context));
|
||||||
|
|
||||||
@@ -196,21 +194,73 @@ public partial class Decompiler
|
|||||||
.FirstOrDefault(s => s.Name == key)?
|
.FirstOrDefault(s => s.Name == key)?
|
||||||
.Type;
|
.Type;
|
||||||
|
|
||||||
var targetInstance = (XElement)stack.Peek();
|
var targetInstance = stack.Peek() as XElement;
|
||||||
|
if (targetInstance is null)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
PropertyDictionaryAddOnXElement(targetInstance, targetDictProperty, IrisObject.Create(dictValue, dictValueType, _context), key);
|
PropertyDictionaryAddOnXElement(targetInstance, targetDictProperty, IrisObject.Create(dictValue, dictValueType, _context), key);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OpCode.PropertyListAdd:
|
case OpCode.PropertyListAdd:
|
||||||
var targetListProperty = _context.GetImportedProperty(instruction.Operands.ElementAt(0));
|
|
||||||
var valueToAdd = stack.Pop();
|
var valueToAdd = stack.Pop();
|
||||||
|
TypeSchema valueToAddType = null;
|
||||||
|
|
||||||
|
if (valueToAdd is SymbolReference symRef)
|
||||||
|
{
|
||||||
|
valueToAddType = initType.InheritableSymbolsTable?
|
||||||
|
.FirstOrDefault(s => s.Name == symRef.Symbol)?
|
||||||
|
.Type;
|
||||||
|
}
|
||||||
|
|
||||||
|
var valueToAddObj = IrisObject.Create(valueToAdd, valueToAddType, _context);
|
||||||
|
|
||||||
var targetInstance2 = (XElement)ToXmlFriendlyObject(stack.Peek());
|
var targetInstance2 = (XElement)ToXmlFriendlyObject(stack.Peek());
|
||||||
|
|
||||||
PropertyListAddOnXElement(targetInstance2, targetListProperty, IrisObject.Create(valueToAdd, null, _context));
|
var targetListPropertyIndex = (ushort)instruction.Operands.First().Value;
|
||||||
|
if (targetListPropertyIndex != ushort.MaxValue)
|
||||||
|
{
|
||||||
|
var targetListProperty = _context.ImportTables.PropertyImports[targetListPropertyIndex];
|
||||||
|
|
||||||
|
if (valueToAddObj.Type is null)
|
||||||
|
{
|
||||||
|
var valueRuntimeType = targetListProperty.PropertyType.RuntimeType.GetGenericArguments().FirstOrDefault();
|
||||||
|
valueToAddType = _context.ImportTables.TypeImports.FirstOrDefault(t => t.RuntimeType == valueRuntimeType);
|
||||||
|
valueToAddObj = valueToAddObj with { Type = valueToAddType };
|
||||||
|
}
|
||||||
|
|
||||||
|
PropertyListAddOnXElement(targetInstance2, targetListProperty, valueToAddObj);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
PropertyListAddOnXElement(targetInstance2, valueToAddObj);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case OpCode.InitializeInstance:
|
||||||
|
case OpCode.JumpIfDictionaryContains:
|
||||||
case OpCode.ConstructListenerStorage:
|
case OpCode.ConstructListenerStorage:
|
||||||
var listenerCount = (ushort)instruction.Operands.First().Value;
|
// These instructions are inconsequential for determining how objects are initialized
|
||||||
|
break;
|
||||||
|
|
||||||
|
case OpCode.ConstructObjectParam:
|
||||||
|
case OpCode.MethodInvoke:
|
||||||
|
case OpCode.MethodInvokePeek:
|
||||||
|
case OpCode.MethodInvokeStatic:
|
||||||
|
case OpCode.MethodInvokePushLastParam:
|
||||||
|
case OpCode.MethodInvokeStaticPushLastParam:
|
||||||
|
case OpCode.PropertyGet:
|
||||||
|
case OpCode.PropertyGetPeek:
|
||||||
|
case OpCode.PropertyGetStatic:
|
||||||
|
case OpCode.Operation:
|
||||||
|
// These instructions only appear in initializers as inline expressions
|
||||||
|
if (!TryDecompileExpression(instruction, stack))
|
||||||
|
throw new NotImplementedException();
|
||||||
|
break;
|
||||||
|
|
||||||
|
case not OpCode.ReturnVoid:
|
||||||
|
Console.WriteLine($"Unsupported instruction: {instruction}");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -223,6 +273,69 @@ public partial class Decompiler
|
|||||||
return stack;
|
return stack;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private string AnalyzeRefreshMethod(uint startOffset, MarkupTypeSchema initType, string methodName = "")
|
||||||
|
{
|
||||||
|
var methodBody = _context.GetMethodBody(startOffset).ToArray();
|
||||||
|
|
||||||
|
Stack<object> stack = new();
|
||||||
|
|
||||||
|
for (int i = 0; i < methodBody.Length; i++)
|
||||||
|
{
|
||||||
|
var instruction = methodBody[i];
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
switch (instruction.OpCode)
|
||||||
|
{
|
||||||
|
case OpCode.Listen:
|
||||||
|
case OpCode.DestructiveListen:
|
||||||
|
var listenerIndex = (ushort)instruction.Operands.ElementAt(0).Value;
|
||||||
|
var listenerType = (ListenerType)(byte)instruction.Operands.ElementAt(1).Value;
|
||||||
|
var watchIndex = (ushort)instruction.Operands.ElementAt(2).Value;
|
||||||
|
var scriptId = (uint)instruction.Operands.ElementAt(3).Value;
|
||||||
|
|
||||||
|
var refreshOffset = uint.MaxValue;
|
||||||
|
if (instruction.OpCode is OpCode.DestructiveListen)
|
||||||
|
refreshOffset = (uint)instruction.Operands.ElementAt(4).Value;
|
||||||
|
|
||||||
|
MarkupTypeSchema markupTypeSchema = initType;
|
||||||
|
uint num = scriptId >> 27;
|
||||||
|
while (num != markupTypeSchema.TypeDepth)
|
||||||
|
markupTypeSchema = markupTypeSchema.MarkupTypeBase;
|
||||||
|
|
||||||
|
var scriptOffset = scriptId & 0x07FFFFFFU;
|
||||||
|
|
||||||
|
string watch = null;
|
||||||
|
InstructionObjectSource watchSource = InstructionObjectSource.Dynamic;
|
||||||
|
switch (listenerType)
|
||||||
|
{
|
||||||
|
case ListenerType.Property:
|
||||||
|
watch = _context.ImportTables.PropertyImports[watchIndex].Name;
|
||||||
|
watchSource = InstructionObjectSource.PropertyImports;
|
||||||
|
break;
|
||||||
|
case ListenerType.Event:
|
||||||
|
watch = _context.ImportTables.EventImports[watchIndex].Name;
|
||||||
|
watchSource = InstructionObjectSource.EventImports;
|
||||||
|
break;
|
||||||
|
case ListenerType.Symbol:
|
||||||
|
watch = initType.SymbolReferenceTable[watchIndex].Symbol;
|
||||||
|
watchSource = InstructionObjectSource.SymbolReference;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
//object handlerObj = stack.Peek();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new Exception($"Failed to analyze instruction `{instruction}` @ 0x{instruction.Offset:X}, {methodName}[{i}]", ex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
private static XElement GetOrCreateElement(XElement parent, XName name)
|
private static XElement GetOrCreateElement(XElement parent, XName name)
|
||||||
{
|
{
|
||||||
var elem = parent.Element(name);
|
var elem = parent.Element(name);
|
||||||
@@ -247,6 +360,8 @@ public partial class Decompiler
|
|||||||
obj = irisObj.Object;
|
obj = irisObj.Object;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return obj switch
|
return obj switch
|
||||||
{
|
{
|
||||||
string str => str,
|
string str => str,
|
||||||
@@ -254,6 +369,8 @@ public partial class Decompiler
|
|||||||
bool b => b ? "true" : "false",
|
bool b => b ? "true" : "false",
|
||||||
IStringEncodable strEnc => strEnc.EncodeString(),
|
IStringEncodable strEnc => strEnc.EncodeString(),
|
||||||
IrisExpression expr => '{' + expr.Decompile(_context) + '}',
|
IrisExpression expr => '{' + expr.Decompile(_context) + '}',
|
||||||
|
ExpressionSyntax expr => FormatInlineExpression(expr),
|
||||||
|
SymbolReference symRef => '{' + symRef.Symbol + '}',
|
||||||
IFormattable formattable => formattable.ToString(null, CultureInfo.InvariantCulture),
|
IFormattable formattable => formattable.ToString(null, CultureInfo.InvariantCulture),
|
||||||
|
|
||||||
Layout.ILayout layoutObj
|
Layout.ILayout layoutObj
|
||||||
@@ -295,7 +412,18 @@ public partial class Decompiler
|
|||||||
{
|
{
|
||||||
case XElement xValue:
|
case XElement xValue:
|
||||||
var xProperty = GetOrCreateElement(xTarget, _nsUix + property.Name);
|
var xProperty = GetOrCreateElement(xTarget, _nsUix + property.Name);
|
||||||
|
|
||||||
|
// Flatten collections
|
||||||
|
if (typeof(System.Collections.IList).IsAssignableFrom(value.Type.RuntimeType)
|
||||||
|
|| typeof(System.Collections.IDictionary).IsAssignableFrom(value.Type.RuntimeType))
|
||||||
|
{
|
||||||
|
xProperty.Add(xValue.Elements());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
xProperty.Add(xValue);
|
xProperty.Add(xValue);
|
||||||
|
}
|
||||||
|
|
||||||
return xProperty;
|
return xProperty;
|
||||||
|
|
||||||
case string strValue:
|
case string strValue:
|
||||||
@@ -311,7 +439,11 @@ public partial class Decompiler
|
|||||||
private XElement PropertyListAddOnXElement(XElement xTarget, PropertySchema property, IrisObject value)
|
private XElement PropertyListAddOnXElement(XElement xTarget, PropertySchema property, IrisObject value)
|
||||||
{
|
{
|
||||||
var xList = GetOrCreateElement(xTarget, _nsUix + property.Name);
|
var xList = GetOrCreateElement(xTarget, _nsUix + property.Name);
|
||||||
|
return PropertyListAddOnXElement(xList, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private XElement PropertyListAddOnXElement(XElement xList, IrisObject value)
|
||||||
|
{
|
||||||
object xValue = ToXmlFriendlyObject(value);
|
object xValue = ToXmlFriendlyObject(value);
|
||||||
|
|
||||||
XElement xListEntry;
|
XElement xListEntry;
|
||||||
@@ -334,10 +466,16 @@ public partial class Decompiler
|
|||||||
return xListEntry;
|
return xListEntry;
|
||||||
}
|
}
|
||||||
|
|
||||||
private XElement PropertyDictionaryAddOnXElement(XElement xTarget, PropertySchema property, IrisObject value, string key)
|
private XElement PropertyDictionaryAddOnXElement(XElement xDictionary, IrisObject value, string key)
|
||||||
{
|
{
|
||||||
var xDictionaryEntry = PropertyListAddOnXElement(xTarget, property, value);
|
var xDictionaryEntry = PropertyListAddOnXElement(xDictionary, value);
|
||||||
xDictionaryEntry.SetAttributeValue("Name", key);
|
xDictionaryEntry.SetAttributeValue("Name", key);
|
||||||
return xDictionaryEntry;
|
return xDictionaryEntry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private XElement PropertyDictionaryAddOnXElement(XElement xTarget, PropertySchema property, IrisObject value, string key)
|
||||||
|
{
|
||||||
|
var xDictionary = GetOrCreateElement(xTarget, _nsUix + property.Name);
|
||||||
|
return PropertyDictionaryAddOnXElement(xDictionary, value, key);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,10 @@ internal record IrisObject(object Object, TypeSchema Type)
|
|||||||
? (irisObj with { Type = type })
|
? (irisObj with { Type = type })
|
||||||
: irisObj;
|
: irisObj;
|
||||||
}
|
}
|
||||||
|
else if (objIn is null)
|
||||||
|
{
|
||||||
|
type ??= UIXTypes.MapIDToType(UIXTypeID.Null);
|
||||||
|
}
|
||||||
|
|
||||||
if (objIn is Disassembler.RawConstantInfo constantInfo)
|
if (objIn is Disassembler.RawConstantInfo constantInfo)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,78 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-16"?>
|
||||||
|
<UIX xmlns="http://schemas.microsoft.com/2007/uix" xmlns:me="Me" xmlns:dialog="res://UIXControls!Dialog.uix" xmlns:iris="assembly://UIX/Microsoft.Iris" xmlns:zuneUI="assembly://ZuneShell/ZuneUI" xmlns:label="res://UIXControls!Label.uix" xmlns:styles="res://ZuneShellResources!Styles.uix" xmlns:linkButtons="res://ZuneShellResources!LinkButtons.uix" xmlns:button="res://UIXControls!Button.uix">
|
||||||
|
<Class Name="AboutDialog" Base="dialog:Dialog">
|
||||||
|
<Properties>
|
||||||
|
<String String="res://ZuneShellResources!AboutDialog.uix#AboutDialogContentUI" Name="ContentUI" />
|
||||||
|
<iris:Command Description="{zuneUI:Shell.LoadString(zuneUI:StringId.IDS_DIALOG_OK)}" Name="Cancel" />
|
||||||
|
<zuneUI:WebHelpCommand Description="{zuneUI:Shell.LoadString(zuneUI:StringId.IDS_ABOUTDIALOG_TECHNICAL_SUPPORT_INFORMATION)}" Url="http://www.zune.net/support/" Name="TechSupportLink" />
|
||||||
|
<String String="{zuneUI:Shell.LoadString(zuneUI:StringId.IDS_ABOUTDIALOG_TITLE)}" Name="AccessibleDescription" />
|
||||||
|
</Properties>
|
||||||
|
</Class>
|
||||||
|
<UI Name="AboutDialogContentUI" Base="dialog:DialogContentUI">
|
||||||
|
<Properties>
|
||||||
|
<me:AboutDialog Name="Dialog" />
|
||||||
|
</Properties>
|
||||||
|
<Scripts>
|
||||||
|
<Script>if (!iris:Application.RenderingType == iris:RenderingType.GDI)
|
||||||
|
{
|
||||||
|
GDIModeLabel.Visible = True;
|
||||||
|
GDIModeLabel.Content = zuneUI:Shell.LoadString(zuneUI:StringId.IDS_ABOUTDIALOG_GDI_MODE_NOTICE);
|
||||||
|
}</Script>
|
||||||
|
</Scripts>
|
||||||
|
<Scripts>
|
||||||
|
<Script>if (!iris:Application.RenderingType == iris:RenderingType.GDI)
|
||||||
|
{
|
||||||
|
GDIModeLabel.Visible = True;
|
||||||
|
GDIModeLabel.Content = zuneUI:Shell.LoadString(zuneUI:StringId.IDS_ABOUTDIALOG_GDI_MODE_NOTICE);
|
||||||
|
}</Script>
|
||||||
|
</Scripts>
|
||||||
|
<Content>
|
||||||
|
<Panel Navigation="ContainAll, WrapAll" MaximumSize="360, 0" Margins="10">
|
||||||
|
<Layout>
|
||||||
|
<FlowLayout Orientation="Vertical" />
|
||||||
|
</Layout>
|
||||||
|
<Children>
|
||||||
|
<label:Label Content="{zuneUI:Shell.LoadString(zuneUI:StringId.IDS_ABOUTDIALOG_TITLE)}" Style="{styles:SharedStyles.DialogHeaderStyle}" WordWrap="true" />
|
||||||
|
<Panel Margins="10">
|
||||||
|
<Layout>
|
||||||
|
<FlowLayout Orientation="Horizontal" />
|
||||||
|
</Layout>
|
||||||
|
<Children>
|
||||||
|
<Graphic Content="res://ZuneShellResources!ZuneColorLogo.png" StretchingPolicy="Uniform" SizingPolicy="SizeToContent" />
|
||||||
|
<Panel Margins="10">
|
||||||
|
<Layout>
|
||||||
|
<DockLayout DefaultLayoutInput="Top" />
|
||||||
|
</Layout>
|
||||||
|
<Children>
|
||||||
|
<label:Label Content="{zuneUI:Shell.LoadString(zuneUI:StringId.IDS_ABOUTDIALOG_COPYRIGHT_LINE1)}" Style="{styles:SharedStyles.DialogTextStyle}" />
|
||||||
|
<label:Label Content="{zuneUI:Shell.LoadString(zuneUI:StringId.IDS_ABOUTDIALOG_COPYRIGHT_LINE2)}" Style="{styles:SharedStyles.DialogTextStyle}" />
|
||||||
|
<label:Label Content="{zuneUI:Shell.LoadString(zuneUI:StringId.IDS_ABOUTDIALOG_COPYRIGHT_LINE3)}" Style="{styles:SharedStyles.DialogTextStyle}" />
|
||||||
|
<Panel Layout="HorizontalFlow">
|
||||||
|
<Children>
|
||||||
|
<label:Label Content="{zuneUI:Shell.LoadString(zuneUI:StringId.IDS_ABOUTDIALOG_VERSION_HEADER)}" Style="{styles:SharedStyles.DialogTextStyle}" />
|
||||||
|
<label:Label Content="{zuneUI:ZuneShell.DefaultInstance.Management.BuildNumber}" Margins="5, 0, 0, 0" Style="{styles:SharedStyles.DialogTextStyle}" />
|
||||||
|
</Children>
|
||||||
|
</Panel>
|
||||||
|
<Panel Layout="HorizontalFlow">
|
||||||
|
<Children>
|
||||||
|
<label:Label Content="{zuneUI:Shell.LoadString(zuneUI:StringId.IDS_ABOUTDIALOG_PRODUCT_ID)}" Style="{styles:SharedStyles.DialogTextStyle}" />
|
||||||
|
<label:Label Content="{zuneUI:SoftwareUpdates.PID}" Margins="5, 0, 0, 0" Style="{styles:SharedStyles.DialogTextStyle}" />
|
||||||
|
</Children>
|
||||||
|
</Panel>
|
||||||
|
<label:Label Name="GDIModeLabel" Visible="false" Style="{styles:SharedStyles.DialogTextStyle}" />
|
||||||
|
</Children>
|
||||||
|
</Panel>
|
||||||
|
</Children>
|
||||||
|
</Panel>
|
||||||
|
<label:Label Content="{zuneUI:Shell.LoadString(zuneUI:StringId.IDS_ABOUTDIALOG_WARNING)}" Style="{styles:SharedStyles.DialogTextStyle}" WordWrap="true" />
|
||||||
|
<Panel Layout="VerticalFlow" Margins="0, 10, 0, 0">
|
||||||
|
<Children>
|
||||||
|
<linkButtons:ExternalLink Model="{Dialog.TechSupportLink}" ToolTipEnabled="false" TileMinSize="160, 16" />
|
||||||
|
<button:BigActionButton Model="{Dialog.Cancel}" Margins="0, 10, 0, 0" ToolTipEnabled="false" FocusOrder="0" />
|
||||||
|
</Children>
|
||||||
|
</Panel>
|
||||||
|
</Children>
|
||||||
|
</Panel>
|
||||||
|
</Content>
|
||||||
|
</UI>
|
||||||
|
</UIX>
|
||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user