diff --git a/ZuneUIXTools.ViewModels/ZuneUIXTools.ViewModels.csproj b/ZuneUIXTools.ViewModels/ZuneUIXTools.ViewModels.csproj
index 7dd79a7..f4dd354 100644
--- a/ZuneUIXTools.ViewModels/ZuneUIXTools.ViewModels.csproj
+++ b/ZuneUIXTools.ViewModels/ZuneUIXTools.ViewModels.csproj
@@ -3,7 +3,7 @@
netstandard2.0
preview
- true
+ false
uixtools.pfx
diff --git a/ZuneUIXTools/MainWindow.xaml.cs b/ZuneUIXTools/MainWindow.xaml.cs
index e9dbe9b..51294da 100644
--- a/ZuneUIXTools/MainWindow.xaml.cs
+++ b/ZuneUIXTools/MainWindow.xaml.cs
@@ -266,7 +266,7 @@ namespace ZuneUIXTools
Application.Run();
InterpreterContext.UseDecompile = false;
- File.WriteAllText(System.IO.Path.ChangeExtension(compiledFile, ".decomp.uix"), InterpreterContext.DecompileResult.InnerXml);
+ File.WriteAllText(System.IO.Path.ChangeExtension(compiledFile, $".decomp.uix"), InterpreterContext.DecompileResults.Last().InnerXml);
}
catch (Exception ex)
{
@@ -276,6 +276,14 @@ namespace ZuneUIXTools
$"Failed to decompile '{compiledFile}'",
"Zune UIX Tools", MessageBoxButton.OK, MessageBoxImage.Error
);
+ System.Diagnostics.Debug.WriteLine(ex.ToString());
+
+ TextBlock errBlock = new TextBlock
+ {
+ Text = ex.ToString(),
+ Margin = new Thickness(0, 0, 0, 4)
+ };
+ ErrorPanel.Children.Add(errBlock);
});
}
}
diff --git a/ZuneUIXTools/ZuneUIXTools.csproj b/ZuneUIXTools/ZuneUIXTools.csproj
index bba5e81..bfd9f49 100644
--- a/ZuneUIXTools/ZuneUIXTools.csproj
+++ b/ZuneUIXTools/ZuneUIXTools.csproj
@@ -5,8 +5,8 @@
net48
true
Images\VCSIrisProject.ico
- true
- uixtools.pfx
+
diff --git a/test/testA.decomp.uix b/test/testA.decomp.uix
index e0dcda1..0d4b67e 100644
--- a/test/testA.decomp.uix
+++ b/test/testA.decomp.uix
@@ -1 +1,11 @@
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/text.decomp.uix b/test/text.decomp.uix
index 34dc37a..10c5c45 100644
--- a/test/text.decomp.uix
+++ b/test/text.decomp.uix
@@ -1 +1,101 @@
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/text.uib b/test/text.uib
index 8ab2146..4fbcb3c 100644
Binary files a/test/text.uib and b/test/text.uib differ
diff --git a/test/text.uix b/test/text.uix
index f1d5233..2317b8c 100644
--- a/test/text.uix
+++ b/test/text.uix
@@ -4,7 +4,6 @@
-
@@ -51,7 +50,13 @@
-
+
+
+
+ 24
+
+
+