bink_play: locate the player in CMake configuration folders #2251
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2251"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by kirigayakazima on 2026-11-26T10:24:13Z.
Claimed in the coordination issue as: BINK-PLAY-CMAKE-CONFIG-DISCOVERY
What and why
Find the native player in RelWithDebInfo, Debug and MinSizeRel runtime build directories. Keep the existing lookup order for a flat build, Release and an explicitly supplied player. A synthetic directory fixture exercises each configuration and precedence.
Tested
Windows, Python 3.14.7. The regression failed on the parent commit and passed with this change.
python -I tests/test_bink_play.pypython -I tests/test_bink_play_cache_write.pygit diff --checkand the changed-path no-game-data scan passed.GPUs tested: N/A (synthetic CPU tests).
AI-assisted: Yes.
Checklist
Imported from ubiquitarianism/leonida. Originally posted by DeadlyChirp on 2026-11-26T10:42:28Z.
Tested on Windows 11, Python 3.12.10, with this PR merged onto current upstream main.
tests/test_bink_play.py: 15 passed, 15 subtests passed (main: 14 passed, 10 subtests).(AI-assisted test run; output checked by hand.)
Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-11-26T11:08:19Z.
Review: COMMENTED
Windows 11: 15/15 Bink launcher tests passed, including player discovery across all four CMake configurations, the top-level build output and an explicit
--exe. The discovery tests use disposable file fixtures. Playback was outside this run. No findings.AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by tiguan26 on 2026-11-27T04:35:04Z.
Review: APPROVED
Approving
b05f1dd6f.The player is found in every CMake configuration folder (none, Release, RelWithDebInfo, Debug, MinSizeRel), not just the first two.
Merged onto
maind1dff7949in one batch with 22 other tool PRs of this series (no conflicts), on Linux with Python 3.13.tests/test_bink_play.py: 15 passed (main: 14). AI-assisted (Claude Code, Claude Opus 5.5).Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T19:32:00Z.
Red/green: tests/test_bink_play.py errors on main (player not found under MinSizeRel, Debug and RelWithDebInfo) and passes with the PR merged, on GitHub Actions Linux and natively on Windows.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main
7daa4a4a5in GitHub Actions: no new failure.AI-assisted (Claude Code, Claude Opus 5.5)
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T22:00:33Z.
Verified by OreoFR
4a54aedcb+ PR headb05f1dd6fpython -I tests/test_bink_play.pyAI-assisted (Claude Code, Claude Opus 5.5).