Skip to content

Add RecompLauncher support - #149

Open
Xarishark wants to merge 14 commits into
zolaware:developmentfrom
Xarishark:feat/recomplauncher-integration
Open

Xarishark wants to merge 14 commits into
zolaware:developmentfrom
Xarishark:feat/recomplauncher-integration

Conversation

@Xarishark

@Xarishark Xarishark commented Nov 6, 2026 •

Copy link
Copy Markdown

This builds on #159, which carries the one change shared by every player's install, not only launcher players: DiscImage moves from src/installer/disc_install.cpp to src/installer/disc_image.cpp, and Installer::RunAsync in disc_install.cpp gets a new require_complete option and now catches errors on the install thread. A PR can't be based on a branch from a fork, so those changes are also in this diff; it shrinks to the RecompLauncher parts once #159 is merged.

This lets players set up and play re:Blue from RecompLauncher. They pick their own three Blue Dragon disc images (and up to three optional DLC packages). The launcher checks the discs, sets the game up without opening the wizard, and Play starts the game straight away. Resolution, display mode, frame rate, V-Sync, aspect ratio, anti-aliasing, texture filtering and depth of field can be changed on the game's page in the launcher. Saves are backed up, and the log and save folders open from there.

After a new release, the launcher reruns setup. A finished setup is kept, so the discs aren't needed again and nothing is extracted twice.

What's in it for players

  • recomplauncher.json with Easy Setup (three required discs, each checked by the game's title ID, plus three optional DLC slots), settings, saves, logs and exit-code messages.
  • The file ships in every release this project builds: at the top of the Windows zip, at the top of the macOS zip (next to reblue.app), and at /recomplauncher.json inside the AppImage.
  • The "Get it on RecompLauncher" badge in the README.

Setup through the launcher has not been tried with real discs yet, and it's untested on Linux, Steam Deck and macOS.

Code changes

Apart from the shared installer change named at the top, these only apply when the launcher passes the new arguments (--prepare-content, --recomplauncher-play) or sets RECOMPLAUNCHER=1. Started any other way, re:Blue starts and behaves as before.

  • Windowless setup and direct play (src/launcher/, a thin wrapper around the SDK's entry point): --prepare-content extracts the three discs with the existing installer and disc reader, prints progress <0..1> <text> lines, and imports DLC with the existing DLC installer. --recomplauncher-play starts the prepared folder through the normal SDK startup.
    • The game folder is only replaced when it's one this setup made, marked by game/.reblue-content. Our own files use a .reblue- prefix, away from the .recomplauncher- names the launcher keeps for itself.
    • Saves, settings and the source images are never touched.
  • Setup reruns: if the game is already set up, setup prints progress 1 Already set up and exits 0 without the discs. DLC picked later is still imported. "Set up" means .reblue-content holds the current content version (reblue-content-v1, separate from the release version, with a comment to bump it when what extraction produces changes); a different or missing one counts as not set up. Each disc is one --discN=<path> argument, as the launcher passes it.
  • A stopped setup recovers: if the launcher's Cancel, its stop after an hour without output, or closing the launcher ends setup partway, the next setup cleans up and carries on. A running setup holds an OS lock on .reblue-preparing.lock, so a leftover .reblue-preparing is told apart from one still in use; if the previous game had been moved aside, it's put back first.
  • No self-update under the launcher: with RECOMPLAUNCHER=1, re:Blue doesn't check for, offer, download or install its own updates or content packs. It also doesn't offer to copy itself over another install, since the launcher installs every release.
  • Packaging: the AppImage and macOS packaging scripts and the Windows file list now include recomplauncher.json and docs/RECOMPLAUNCHER.md.
  • Tests in tests/launcher/ and a small CI workflow that runs them on Windows, Linux and macOS.

The CI workflow (.github/workflows/recomplauncher.yml) is optional; feel free to drop it.

What I added

  • recomplauncher.json:
    • inputs: three discs plus three optional DLC slots.
    • prepare with done and keeps_copy, and start.
    • config and eight settings on the existing cvars in profiles/default/reblue.toml.
    • saves, folders, actions and exit_codes.
  • Code: the windowless setup and direct play above, the rerun check, and the update switch-off under RECOMPLAUNCHER=1.
  • Packaging: the manifest at the top of each zip and at the root of the AppImage.
  • README: the badge, plus a short note.

What I checked, and how

  • Schema: recomplauncher.json validates with no errors against the current schema (Python jsonschema 4.26, Draft 7).
  • Windows (clang-cl, rexglue-sdk nightly-20261002-bd833a2a): the launcher test targets built, along with the Windows-only startup and installer code (entry_point.cpp, recomplauncher.cpp, disc_install.cpp).
    • 39 setup and 31 command-line test cases pass (2 setup cases are Linux and macOS only), including one that kills setup mid-extraction and runs it again.
    • 3 manifest/packaging checks pass; 2 Linux-only checks skip.
    • src/platform/updates.cpp compiles with the SDK's flags.
  • Linux (Ubuntu 24.04 container, clang 19, same SDK): the same targets built.
    • The 31 command-line cases and all 5 packaging checks pass, including running the real AppImage packaging script with a stand-in for appimagetool, and passing arguments through AppRun.
    • All 41 setup cases pass as a normal user.
    • updates.cpp also compiles there with GCC 16.
  • CI: the included workflow passes on windows-latest, ubuntu-latest and macos-latest in my fork, building the same test targets and adapters. Here it's waiting for maintainer approval.
  • Not built or run: the full game, because building it needs the game assets. So I couldn't start it with or without the new arguments. The two small changes in src/reblue_app.cpp weren't compiled either; I read them against platform/updates.h.
  • Real discs, DLC and game files: none were used.
  • dumps: left out. I couldn't verify sizes or CRC32s from Redump or this project's docs.

Things that would make your recomp better

  • A Linux tarball next to the AppImage, made from the same folder. Some players' systems or sandboxes can't run an AppImage, and a tarball gives the launcher a fallback. Small.
  • CHD disc images: most players keep their disc backups as CHD. Medium (libchdr).
  • One data folder option (or reading RECOMPLAUNCHER_DATA): saves, settings, caches and logs could all move together, the way portable emulators do. Medium.
  • Reading RECOMPLAUNCHER_MODE: start full screen with controller menus when Play is pressed in Big Picture mode. Small.
  • Recomp Achievements (https://github.com/elripalda/RecompAchievements): achievements, Beaten and Mastered games, and leaderboards for players. Medium.

Anything I wasn't sure about

  • All three discs share one title ID. The launcher's check accepts any re:Blue disc in any slot, and the setup step then checks which disc is which.
  • With keeps_copy, a rebuild from the kept files gets no disc arguments: RecompLauncher leaves out any {input:…} argument whose file wasn't picked or no longer exists. Setup also skips the discs whenever the game is already set up, so either way it works.
  • To extract the discs again, remove the game folder first.

Make it yours on RecompLauncher

A free developer account at https://recomplauncher.com/dev (sign in with GitHub, which finds your repos) lets you claim the recomp. Its page then shows it as yours, with the Verified developer badge once approved. You can edit its page and art, see its stats, and read player reports with their logs, and your new releases reach players faster.

@Xarishark
Xarishark marked this pull request as draft November 8, 2026 19:51
@Xarishark Xarishark changed the title Add cross-platform RecompLauncher support with headless three-disc setup Add RecompLauncher integration with named discs and embedded AppImage manifests Nov 8, 2026
@Xarishark Xarishark changed the title Add RecompLauncher integration with named discs and embedded AppImage manifests Add RecompLauncher support for named discs, DLC and embedded AppImages Nov 8, 2026
@Xarishark
Xarishark marked this pull request as ready for review November 8, 2026 20:53
@Xarishark
Xarishark marked this pull request as draft November 26, 2026 13:12
RecompLauncher reruns setup after every release, without the discs once the build is kept. A published managed game folder now ends setup with 'progress 1 Already set up', newly picked DLC is still imported, and discs can be passed as single --discN=<path> arguments.
With RECOMPLAUNCHER=1 no update or content check runs, no staged update is installed and no upgrade copy is offered; the launcher installs every release.
Pass each disc as one argument, mark the prepared game folder as kept with prepare.done, keeps_copy and folders.game, check every disc by title ID, and drop the prepare.timeout field the schema no longer allows.
@Xarishark Xarishark changed the title Add RecompLauncher support for named discs, DLC and embedded AppImages Add RecompLauncher support Nov 26, 2026
Our markers now use .reblue-content and .reblue-preparing, away from the
.recomplauncher- names RecompLauncher keeps for its own files. The owner
marker holds a content version; a build with a different or missing one
counts as not set up.
RecompLauncher's Cancel, its stop after an hour without output or the
launcher closing could leave .reblue-preparing behind, and every later
setup refused to run. Setup now holds an OS lock on
.reblue-preparing.lock to tell a running setup from a leftover one. A
leftover is cleaned up at the start of the next run, putting the previous
game back if it had been moved aside.
Setup now takes each disc as one --discN=<path> argument. The
two-argument --disc1 <path> form and --game-dir folder discovery, which
the launcher never passes, are gone.
Prepare from a folder and FindDiscs had no caller left. disc_probe now
takes the three images, like setup.
@Xarishark
Xarishark marked this pull request as ready for review November 26, 2026 15:08
@tomcl7
tomcl7 changed the base branch from main to development November 27, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant