Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not add zero-length filenames in per-target zips
Rewrite the compound conditional to avoid future confusions. This bug has gone unnoticed for so long because Alpakit-generated zip files do not contain folder entries when iterating with a `zipReader`. However, manually generated zip files, e.g. ContentLib mods, could contain folder entries depending on the zipping program used. The resulting zero-length folder in the per-target zips breaks SMM2 on Windows, but not SMM3.
- Loading branch information