upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/loader_test.cpp
diff options
context:
space:
mode:
authorNWX10 <179748639+NWX10@users.noreply.github.com>2026-11-21 23:17:32 +0300
committerNWX10 <179748639+NWX10@users.noreply.github.com>2026-11-21 23:17:32 +0300
commiteb85039a584be9b3be99346dd9e2fb400be2b128 (patch)
tree17f00f77c7d60978a9a7ea6014db4a23e3826c85 /runtime/test/loader_test.cpp
parent4c75ce537add406b426d0a1dc84d9a01fb4c86c9 (diff)
Assets stage: resume stopped audio steps, keep no partial files, retry failed XMA decodes
The audio steps had the same resume problem as the shader stage (#126): - make_game.py: the Ogg Opus and XMA2 steps counted as done once their folder existed, which a stopped run also leaves. They now count as done by a marker (audio/ogg.done, audio/xma.done) written after the step succeeds. - make_game.py: XMA2 -> WAV with ffmpeg now runs on every assets run for the streams that have no .wav yet, writes to a temporary name renamed on success, and checks ffmpeg's exit code. A failed or stopped decode no longer leaves a short .wav, and installing ffmpeg after the first run now decodes the streams instead of never trying again. - awc_opus.py: .ogg/.wav files are written under a temporary name and renamed, so a stopped run or a full disk never leaves a truncated file. A read/write error (OSError) now fails the run (exit 1) so the step is retried; banks that do not parse are still skipped as before. - tests: new tests/test_audio_stage_resume.py (10 tests, standard library only); WavValidationTest updated to set up the new markers. AI-assisted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/loader_test.cpp')
0 files changed, 0 insertions, 0 deletions