upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src/pe_loader.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:47:33 +0300
commit9d02cc9f37e0247f919e687f2d2ddc745fb24838 (patch)
tree7e4e51c9e7bb20cf4f6be8e9dbac7988ef64ddbd /runtime/src/pe_loader.cpp
parentdcf5f44879ffa7cc1a1b61e284568b03c39d9885 (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/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions