Commit Graph

4 Commits

Author SHA1 Message Date
df6324ff69 bink_play: a headless pass needs every decoded frame to write the buffer
--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.
2026-11-22 19:02:28 -05:00
9c5ec38122 bink_play: play by name, and the stinger when started with no movie
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>
2026-11-22 18:48:54 +00:00
469f1acca0 bink_play: say why in a message box when a windowed run can't start
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>
2026-11-22 18:48:53 +00:00
fb6f143da9 bink_play: play a game movie in a window, straight from its archive
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>
2026-11-22 18:48:52 +00:00