From 0d91a3be9ca217b53903b94f72fe8e18e69732fd Mon Sep 17 00:00:00 2001 From: Mitko Stoikov Date: Mon, 6 Aug 2018 12:10:35 +0300 Subject: [PATCH] Fixed incorrect reading of old assembly --- UI/JustAssembly/Nodes/AssemblyNode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/JustAssembly/Nodes/AssemblyNode.cs b/UI/JustAssembly/Nodes/AssemblyNode.cs index 375ef82..356dc2f 100644 --- a/UI/JustAssembly/Nodes/AssemblyNode.cs +++ b/UI/JustAssembly/Nodes/AssemblyNode.cs @@ -150,7 +150,7 @@ public Task LoadItemsAsync(Action cancelAction = null) { progressNotifier.LoadingMessage = string.Format("Loading assembly {0} of {1}", assemblyNumber, assemblyCount); - AssemblyDefinition assembly = AssemblyDefinition.ReadAssembly(TypesMap.NewType, new ReaderParameters(GlobalAssemblyResolver.Instance)); + AssemblyDefinition assembly = AssemblyDefinition.ReadAssembly(TypesMap.OldType, new ReaderParameters(GlobalAssemblyResolver.Instance)); bool shouldDecompileDangerousResources = this.ShouldDecompileDangerousResources(assembly, TypesMap.OldType, AssemblyType.Old); IAssemblyDecompilationResults r1 = Decompiler.GenerateFiles(TypesMap.OldType,