Skip to content

Fail the disc install cleanly instead of crashing - #159

Open
Xarishark wants to merge 3 commits into
zolaware:developmentfrom
Xarishark:feat/installer-shared
Open

Xarishark wants to merge 3 commits into
zolaware:developmentfrom
Xarishark:feat/installer-shared

Conversation

@Xarishark

@Xarishark Xarishark commented Nov 26, 2026 •

Copy link
Copy Markdown

If an error was thrown while the installer copied the game from the discs, it escaped the install thread and closed re:Blue. Now it shows up in the installer as a failed install with its message, like the installer's other errors.

Two small changes come with it:

  • DiscImage moves to its own file. DiscImage, ValidateDisc and DiscFingerprint move unchanged from src/installer/disc_install.cpp to a new src/installer/disc_image.cpp, so code that only needs to read a disc can build them without the rest of the installer.
  • Installer::RunAsync takes an optional require_complete (off by default). With it on, the install fails instead of going ahead when the discs are missing required files. The wizard doesn't turn it on, so it behaves as before. Nothing in this PR calls it; only Add RecompLauncher support #149 does.

The RecompLauncher support in #149 builds on this.

What I checked

  • disc_install.cpp and disc_image.cpp compile after each commit, with clang-cl on Windows and with clang 19 on Ubuntu 24.04, against rexglue-sdk nightly-20261002-bd833a2a.
  • Not built or run: the full game, since building it needs the game assets, and an install from real discs.

DiscImage, ValidateDisc and DiscFingerprint move unchanged out of
disc_install.cpp, so code that only needs to read a disc can build them
without the whole installer.
An exception on the install thread, such as a disc read or file system
error, ended the program. It now shows as a failed install with its
message, like the installer's other errors. RunAsync also takes
require_complete, off by default, to fail instead of installing when the
discs are missing required files.
@Xarishark
Xarishark marked this pull request as ready for review November 26, 2026 15:17
@tomcl7
tomcl7 changed the base branch from main to development November 27, 2026 17:13
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