diff options
author | Tiago Conceição <Tiago_caza@hotmail.com> | 2021-08-04 19:36:47 +0300 |
---|---|---|
committer | Tiago Conceição <Tiago_caza@hotmail.com> | 2021-08-04 19:36:47 +0300 |
commit | 1cbae6eea3b6c38677e70b144283142d538e565c (patch) | |
tree | bf677e4a95a80d327ef84543250d73367f63d6e7 /UVtools.Core | |
parent | f73956ad7e9b985f942b8fc16b1904060bd60aad (diff) |
ODLP update
Diffstat (limited to 'UVtools.Core')
-rw-r--r-- | UVtools.Core/FileFormats/ZCodeFile.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/UVtools.Core/FileFormats/ZCodeFile.cs b/UVtools.Core/FileFormats/ZCodeFile.cs index 03c066e..4b62ea3 100644 --- a/UVtools.Core/FileFormats/ZCodeFile.cs +++ b/UVtools.Core/FileFormats/ZCodeFile.cs @@ -8,6 +8,7 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Drawing; using System.IO; using System.IO.Compression; @@ -641,7 +642,7 @@ namespace UVtools.Core.FileFormats if (line == string.Empty || line[0] == ';') continue; // No empty lines nor comment start lines progress += (uint)line.Length; - byte[] data = Encoding.UTF8.GetBytes(line); + var data = Encoding.UTF8.GetBytes(line); List<byte> padData = new(64) {0, 1, 0}; padData.AddRange(data); @@ -656,6 +657,7 @@ namespace UVtools.Core.FileFormats } var padDataArray = padData.ToArray(); + //Debug.WriteLine(string.Join(", ", padDataArray)); var encodedBytes = encryptEngine.ProcessBlock(padDataArray, 0, padDataArray.Length); sb.AppendLine(System.Convert.ToBase64String(encodedBytes)); |