Skip to content

Commit 570186b

Browse files
replace dotnetzip with dotnetzip.original, enables alternate encoding for unicode preview files
Library changes from dotnetzip.dll to ionic.zip.dll This does not fix packs that already have the blank name, users can open the ttmp2 file in winzip and rename the blank file to what is listed in the TTMPL file if the mod needs upgrading.
1 parent 1924479 commit 570186b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

xivModdingFramework/Mods/TTMPWriter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Collections.Generic;
55
using System.IO;
66
using System.Security.Cryptography;
7+
using System.Text;
78
using System.Threading.Tasks;
89
using xivModdingFramework.General.Enums;
910
using xivModdingFramework.Helpers;
@@ -329,6 +330,7 @@ public async Task Write(IProgress<(int current, int total, string message)> prog
329330
var zf = new ZipFile();
330331
zf.UseZip64WhenSaving = Zip64Option.AsNecessary;
331332
zf.CompressionLevel = Ionic.Zlib.CompressionLevel.None;
333+
zf.ProvisionalAlternateEncoding = Encoding.UTF8; // Fix Unicode filename corruption (etc, ____.jpg)
332334

333335
zf.AddFile(tempMPL, "");
334336
zf.AddFile(tempMPD, "");

xivModdingFramework/xivModdingFramework.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</ItemGroup>
2525

2626
<ItemGroup>
27-
<PackageReference Include="DotNetZip" Version="1.16.0" />
27+
<PackageReference Include="DotNetZip.Original" Version="2025.2.15" />
2828
<PackageReference Include="HelixToolkit" Version="2.25.0" />
2929
<PackageReference Include="HelixToolkit.SharpDX.Core" Version="2.25.0" />
3030
<PackageReference Include="JeremyAnsel.BcnSharp" Version="1.0.6" />

0 commit comments

Comments
 (0)