From 2cff0d94644eaef3e76c17c1a61f7a858529a1c4 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 16 Feb 2021 20:05:24 -0500 Subject: [PATCH] Don't encrypt any MOUL files at all. This should be done by a build tool, eg UruManifest --- korman/exporter/outfile.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/korman/exporter/outfile.py b/korman/exporter/outfile.py index 8e71174..d3ee7e6 100644 --- a/korman/exporter/outfile.py +++ b/korman/exporter/outfile.py @@ -249,7 +249,8 @@ class OutputFiles: backing_stream = stream # No sense in wasting time encrypting data that isn't going to be used in the export - if not bogus: + # Also, don't encrypt any MOUL files at all. + if not bogus and self._version != pvMoul: enc = kwargs.get("enc", None) if enc is not None: stream = plEncryptedStream(self._version)