upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/bink_play.cpp
AgeCommit message (Collapse)Author
13 daysbink_play: a headless pass needs every decoded frame to write the bufferProudnoob4
--headless counted decode calls and printed RESULT PASS without looking at the frame, so a decode that wrote nothing still passed: the buffer starts zeroed and otherwise keeps the previous frame. Headless decode() now fills the frame with 0xA5 first and fails if the decode and copy leave every byte of it. Windowed playback is unchanged. Follow-up to #4049.
13 daysbink_play: play by name, and the stinger when started with no movieDominik
A NAME (a game path or a unique part of it) is looked up in the table tools/bink_play.py keeps, which bink_play builds once if it is missing; the table also gives the game folder. A windowed run with no movie plays Stinger/RSG_STINGER.bk2, so double-clicking the executable plays it. A headless run with no movie still skips (CTest). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 daysbink_play: say why in a message box when a windowed run can't startDominik
Started by double-click, the console closes with the process, so a missing movie or game folder looked like the player not opening at all. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 daysbink_play: play a game movie in a window, straight from its archiveDominik
runtime/test/bink_play.cpp maps the package's Bink2Scarlett.dll with rt::Loader and plays a .bk2 at its frame rate (GDI window; pause, seek, loop). A movie inside an archive plays where it is: archive.rpf@OFFSET goes to BinkOpen with BinkSetFileOffset and the BINKFILEOFFSET flag, so nothing is extracted. tools/bink_play.py finds the offset from the movie's name (bink_names.py). CTest runs the headless smoke, which skips without a package and movie. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>