feat(hle): skip the intro movie or all Bink movies on request (LARP_SKIP_INTRO, LARP_SKIP_BINK) #309

Manually merged
github merged 1 commit from github-bot/gh-309 into gh-pr/309/base 2026-12-06 00:58:59 +00:00 AGit
Owner

@⁠niiniiniintje on GitHub · 2026-12-05 22:58 UTC · original
niiniiniintje:feat/skip-intro → main · +426 −0 · 4 files · 1 commits · merged 2026-12-05 23:10 UTC

Adds an opt-in Bink movie skipper. LARP_SKIP_INTRO=1 skips the intro movie at start and goes straight to the menu. LARP_SKIP_BINK=1 skips every movie that plays once, and all also skips the looping menu backgrounds, which then stay dark.

The title's Bink DLL stays loaded and opens every movie as usual. A skipped movie is moved to its last frame before its first frame is shown, so the title's own end-of-movie check ends it. The title opens its movies from memory, so no movie name reaches the DLL. The intro is therefore identified as the first movie at 3840x2160 with 450 frames. Only imports bound by the loader are wrapped, both at startup and for DLLs loaded later. An export looked up with GetProcAddress is not.

Ported from VIctory-xmem (0a4aadf, 25b1a09). It goes back to C-GDev's fork PR 613, with the idea from XCL PR #1053. The VICTORY_ switches are renamed LARP_.

  • Off by default: with neither variable set, wrap_with returns the DLL's address unchanged, so the bound imports are the same as on main.
  • Docs: both switches added to docs/environment-variables.md.
  • Tests: modules::bink::tests::mode_values and skips_movies_and_passes_the_rest_through pass, cross-built for x86_64-pc-windows-msvc and run under Wine.
  • Queue: no open PR touches Bink or movie skipping.

Checked on Linux only: Proton (Wine 11), RX 7900 XTX, retail 1.0.2.1, Series X profile. With LARP_SKIP_INTRO=1 the game starts at the menu, and loading screens and in-world videos still play. Not checked on native Windows.

**@⁠niiniiniintje** on GitHub · 2026-12-05 22:58 UTC · [original](https://github.com/gamingwithhomie/larp/pull/309) `niiniiniintje:feat/skip-intro` → `main` · +426 −0 · 4 files · 1 commits · merged 2026-12-05 23:10 UTC Adds an opt-in Bink movie skipper. `LARP_SKIP_INTRO=1` skips the intro movie at start and goes straight to the menu. `LARP_SKIP_BINK=1` skips every movie that plays once, and `all` also skips the looping menu backgrounds, which then stay dark. The title's Bink DLL stays loaded and opens every movie as usual. A skipped movie is moved to its last frame before its first frame is shown, so the title's own end-of-movie check ends it. The title opens its movies from memory, so no movie name reaches the DLL. The intro is therefore identified as the first movie at 3840x2160 with 450 frames. Only imports bound by the loader are wrapped, both at startup and for DLLs loaded later. An export looked up with `GetProcAddress` is not. Ported from VIctory-xmem (`0a4aadf`, `25b1a09`). It goes back to C-GDev's fork PR 613, with the idea from XCL PR #1053. The `VICTORY_` switches are renamed `LARP_`. - [x] Off by default: with neither variable set, `wrap_with` returns the DLL's address unchanged, so the bound imports are the same as on `main`. - [x] Docs: both switches added to `docs/environment-variables.md`. - [x] Tests: `modules::bink::tests::mode_values` and `skips_movies_and_passes_the_rest_through` pass, cross-built for `x86_64-pc-windows-msvc` and run under Wine. - [x] Queue: no open PR touches Bink or movie skipping. Checked on Linux only: Proton (Wine 11), RX 7900 XTX, retail 1.0.2.1, Series X profile. With `LARP_SKIP_INTRO=1` the game starts at the menu, and loading screens and in-world videos still play. Not checked on native Windows.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 23:02:52 +00:00
github-bot changed target branch from main to gh-pr/309/base 2026-12-05 23:12:55 +00:00
Author
Owner

@⁠Heliumrich on GitHub · 2026-12-05 23:52 UTC · original

This trigger a false positive trojan detection in Windows Defender for me

**@⁠Heliumrich** on GitHub · 2026-12-05 23:52 UTC · [original](https://github.com/gamingwithhomie/larp/pull/309#issuecomment-7447908864) This trigger a false positive trojan detection in Windows Defender for me
github-bot referenced this pull request from a commit 2026-12-06 00:57:58 +00:00
github manually merged commit eaf0d1c26c into gh-pr/309/base 2026-12-06 00:58:58 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.