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]>
20 lines
391 B
C
20 lines
391 B
C
/**
|
|
* Copyright (c) 2026 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#include "asset/asset.h"
|
|
#include "asset/assetdsk.h"
|
|
#include "assert/assert.h"
|
|
|
|
errorret_t assetInitVita(void) {
|
|
errorChain(assetDskOpenFromPath(ASSET_VITA_DSK_PATH, &ASSET.zip));
|
|
errorOk();
|
|
}
|
|
|
|
errorret_t assetDisposeVita(void) {
|
|
errorOk();
|
|
}
|