Collapse dusk.dsk from two zip archives into one, all uncompressed

Bulk assets (mp3, png) are already compressed at the file level, so a
DEFLATE pass on top bought negligible space for real CPU cost. Packs
everything into a single ZIP_STORED archive instead, so every entry
(not just locale/*) gets the reliable repeated seeking/re-opening that
libzip only supports for uncompressed entries. Header shrinks from 32
to 16 bytes; version bumped to 2 so a stale pre-change dusk.dsk is
rejected and rebuilt rather than misread.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
2026-09-09 10:17:34 -05:00
co-authored by Claude Sonnet 5
parent 798db14bb5
commit c8a6325615
15 changed files with 131 additions and 345 deletions
+1 -3
View File
@@ -76,9 +76,7 @@ errorret_t assetInitLinux(void) {
printf("Try open asset file: %s\n", searchPath);
// Try open
if(errorIsNotOk(
assetDskOpenFromPath(searchPath, &ASSET.zip, &ASSET.zipStored)
)) {
if(errorIsNotOk(assetDskOpenFromPath(searchPath, &ASSET.zip))) {
printf("Failed to open asset file: %s\n", searchPath);
continue;
}