From 44d5e31f5d28e34ad9c1085c7e302a3206c7f9ff Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Tue, 1 Oct 2019 21:07:26 -0600 Subject: [PATCH] Fix broken ESM cleaning --- CHANGELOG.md | 3 ++- Wabbajack/Compiler.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aeeb45ce..88b74d87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,8 @@ * Modlists are now .zip files. * Modlists now end with `.modlist_v1` to enable better version control * If `readme.md` is found in the profile directory, inline it into the install report. -* Fix bug with null uri in slideshow images +* Fix bug with null uri in slideshow images +* Fix bug in CleanedESM generation #### Version 0.9.3 - 9/30/2019 * Add WABBAJACK_NOMATCH_INCLUDE works like WABBAJACK_INCLUDE but only includes files that are found to be missing at the end of compilation diff --git a/Wabbajack/Compiler.cs b/Wabbajack/Compiler.cs index 4380208c..618292ee 100644 --- a/Wabbajack/Compiler.cs +++ b/Wabbajack/Compiler.cs @@ -712,7 +712,7 @@ namespace Wabbajack using (var ms = new MemoryStream()) { Utils.CreatePatch(File.ReadAllBytes(game_file), File.ReadAllBytes(source.AbsolutePath), ms); - var data = ms.ToArray().ToBase64(); + var data = ms.ToArray(); result.SourceDataID = IncludeFile(data); Info($"Generated a {data.Length} byte patch for {filename}");