From 2d0b5f5fea8fffc9f1104c45e035d6f63cabe007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sat, 20 Jul 2024 22:46:49 +0200 Subject: [PATCH] Avoid possibly incompatible ZIP extra data. --- OpenRA.Game/FileSystem/ZipFile.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenRA.Game/FileSystem/ZipFile.cs b/OpenRA.Game/FileSystem/ZipFile.cs index 95cdefcad9..b396dc43d4 100644 --- a/OpenRA.Game/FileSystem/ZipFile.cs +++ b/OpenRA.Game/FileSystem/ZipFile.cs @@ -114,6 +114,10 @@ namespace OpenRA.FileSystem pkgStream.Position = 0; pkg = new ZipFile(pkgStream); Name = filename; + + // Remove subfields that can break ZIP updating. + foreach (ZipEntry entry in pkg) + entry.ExtraData = null; } void Commit()