Repository navigation
feat: apply the registry status in the window and quarantine the mod loader when suspended - #65
Merged
Merged
Conversation
Rename winhttp.dll (Windows) or the BepInEx start script (macOS, Linux) of a profile folder that holds a game copy to <name>.suspended, recording it in quarantine.json before the rename and restoring it from that record. Profile folders without a game copy (injector mode) are left untouched. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ServerAccess asks the registry before an update or launch and plans the next step for approved, needs-approval, suspended, unlisted and unreachable profiles, disabling the mod loader entry point while a profile is suspended and restoring it before a launch the status allows. A fresh index also disables every installed suspended profile, not only the one in view. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ating Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The window asks the registry before an update or launch. Approved goes on as before; needs-approval warns first, pauses updates and starts from the installed files only after a yes; suspended refuses, explains and offers to remove the files; an unlisted profile or an unreachable registry starts from the installed files without updating, and cannot be added when not installed. A fresh index at startup also disables every installed suspended profile. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…rantine Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
fogrew
force-pushed
the
feature/server-gate-quarantine
branch
from
October 27, 2026 10:35
e0b244e to
68312ca
Compare
This was referenced Oct 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #59. Part of #7.
What changes
The window asks the registry before every update and launch (
ServerAccessover the existingServerGateandServerPolicy, which are unchanged):approvedneeds-approval, installedsuspendedA fresh index is also applied at startup to every installed profile it suspends, not only the one on screen (folders under
clients/<id>and those set inconfig.ini).Quarantine
ProfileQuarantine(Launcher.Core):winhttp.dllon Windows,start_game_bepinex.sh/run_bepinex.shon macOS and Linux, renamed to<name>.suspended, only in a profile folder that holds the game executable. Injector mode (game from Steam or a game folder of its own) has nothing to disable and is left untouched.quarantine.jsonis written atomically before the rename and removed after the restore. Both halves are idempotent, so every interrupted state converges on the next run: recorded but not renamed, renamed with the record kept, restored with the record kept. Only the known entry point names are ever restored from the record, so an edited record cannot rename other files.Removal
ProfileRemovalgoes throughLauncherPaths.CanUse(writable, empty or already a client). It also refuses a drive root and any folder that is, or contains, the launcher's own folder, the game folder or the Steam install.Tests
Launcher.Tests: 301 -> 381. New:ProfileQuarantineTests,ServerAccessTests(every status, installed or not, playing or not; status flips; replayed index; startup sweep),ProfileRemovalTests,InstalledLaunchTests, plus path, guard and localisation cases. READMEs updated.Launcher.Avalonia.Tests: 10 -> 17.ServerStatusDialogTestsdrives the real dialogs headless (suspended keep and remove, not installed, needs-approval cancel and paused notice, approved, built-in). New README for the project.Notes
Launcher.Cliand the legacy WPFLauncheronly ever use the built-in profile (ServerProfile.Default), and the CLI never starts the game (startGame: false), so there is no gate to apply there.MainWindow: the launch code inOnUpdateCompleteand the Steam lookup inStartUpdateAsyncare extracted intoTryLaunchGameandFindSteamGameFolderso the launch-from-installed-files path reuses them; behaviour of the update path is unchanged.docs/registry-trust-policy.mdnames the exact entry point files and describes the window behaviour.Open questions
ServerPolicyignoresRegistryLoadResult.Source, so an index served from the cache (still unexpired) allows updates. Left as is, sinceServerPolicywas not to be redesigned.🤖 Generated with Claude Code