launcher: one launcher at a time, a second start brings the first to the front (upstream 64f517d) #70

Manually merged
github merged 1 commit from github-bot/gh-70 into gh-pr/70/base 2026-12-06 00:55:20 +00:00 AGit
Owner

@⁠Kal0s-design on GitHub · 2026-12-05 20:03 UTC · original
Kal0s-design:port/single-launcher → main · +90 −3 · 2 files · 1 commits · merged 2026-12-05 22:31 UTC

From upstream ReVIctory (64f517d, author kept), applied without conflicts. Opening the launcher a second time, a double click too many or a second shortcut, used to start a second launcher window, and two launchers can start jobs and write launcher.txt over each other. Now the launcher claims a per-session named mutex at start. If another launcher holds it, the new one finds that window by its class, restores it if minimized, brings it to the front and exits. If the mutex can't be created at all it fails open and the launcher starts as before.

I checked how this fork starts itself again, since a single-instance lock could block that. The game, warm and check runs are started with arguments, so they never reach the launcher entry (that's only taken without arguments), and the in-game menu's Restart game is handled inside the running launcher's loop, without a new launcher process. So none of them hit the lock.

Clippy -D warnings is clean in both of the Lint workflow's runs and the victory app's tests pass (59), including the new one that takes the mutex, fails a second take while held and succeeds after release.

AI-assisted: yes

🤖 Generated with Claude Code

**@⁠Kal0s-design** on GitHub · 2026-12-05 20:03 UTC · [original](https://github.com/VGLALALA/ReVictory-RDNA3/pull/70) `Kal0s-design:port/single-launcher` → `main` · +90 −3 · 2 files · 1 commits · merged 2026-12-05 22:31 UTC From upstream ReVIctory (64f517d, author kept), applied without conflicts. Opening the launcher a second time, a double click too many or a second shortcut, used to start a second launcher window, and two launchers can start jobs and write launcher.txt over each other. Now the launcher claims a per-session named mutex at start. If another launcher holds it, the new one finds that window by its class, restores it if minimized, brings it to the front and exits. If the mutex can't be created at all it fails open and the launcher starts as before. I checked how this fork starts itself again, since a single-instance lock could block that. The game, warm and check runs are started with arguments, so they never reach the launcher entry (that's only taken without arguments), and the in-game menu's Restart game is handled inside the running launcher's loop, without a new launcher process. So none of them hit the lock. Clippy -D warnings is clean in both of the Lint workflow's runs and the victory app's tests pass (59), including the new one that takes the mutex, fails a second take while held and succeeds after release. AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 20:09:01 +00:00
github-bot force-pushed github-bot/gh-70 from 7368f9b0c9 to be3b1ef5b3 2026-12-05 21:27:49 +00:00 Compare
github-bot changed target branch from main to gh-pr/70/base 2026-12-05 22:43:10 +00:00
github manually merged commit be3b1ef5b3 into gh-pr/70/base 2026-12-06 00:55:20 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.