From 595d6445c6b3531952dde464a2d987237fe5f7a8 Mon Sep 17 00:00:00 2001 From: kalpesh2804 Date: Tue, 14 Jun 2016 01:25:03 +0530 Subject: [PATCH 1/2] Update Packer.cs --- Confuser.Core/Packer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Confuser.Core/Packer.cs b/Confuser.Core/Packer.cs index c330f6184..c1a752020 100644 --- a/Confuser.Core/Packer.cs +++ b/Confuser.Core/Packer.cs @@ -83,7 +83,7 @@ protected void ProtectStub(ConfuserContext context, string fileName, byte[] modu throw new ConfuserException(ex); } - context.OutputModules = new[] { File.ReadAllBytes(Path.Combine(outDir, fileName)) }; + context.OutputModules = new[] { File.ReadAllBytes(Path.Combine(tmptDir, fileName)) }; context.OutputPaths = new[] { fileName }; } } @@ -177,4 +177,4 @@ protected override void GetPluginsInternal(ConfuserContext context, IList Date: Tue, 14 Jun 2016 01:54:04 +0530 Subject: [PATCH 2/2] Crashing if we use Packer option --- Confuser.Core/Packer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Confuser.Core/Packer.cs b/Confuser.Core/Packer.cs index c1a752020..e7f0105ed 100644 --- a/Confuser.Core/Packer.cs +++ b/Confuser.Core/Packer.cs @@ -83,7 +83,7 @@ protected void ProtectStub(ConfuserContext context, string fileName, byte[] modu throw new ConfuserException(ex); } - context.OutputModules = new[] { File.ReadAllBytes(Path.Combine(tmptDir, fileName)) }; + context.OutputModules = new[] { File.ReadAllBytes(Path.Combine(tmpDir, fileName)) }; context.OutputPaths = new[] { fileName }; } }