menu: quit and restart the game from the F1 drawer, through the game's own shutdown #57
No reviewers
Labels
No labels
accessibility
amd
bug
crash
device-removed
documentation
duplicate
enhancement
feature-request
good first issue
help wanted
input
invalid
launcher
memory
needs-logs
nvidia
off-topic
performance
question
shaders
stutter
visuals
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/VGLALALA--ReVictory-RDNA3!57
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-57"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Kal0s-design on GitHub · 2026-12-05 19:31 UTC · original
Kal0s-design:port/menu-quit-restart→main· +124 −10 · 10 files · 2 commits · merged 2026-12-05 19:58 UTCTwo upstream ReVIctory commits by SovietBearz0r, authors kept, that add "Quit game" and "Restart game" to the F1 drawer and make both go through the game's own shutdown.
767d145 adds the two entries. Restart also asks for a new run, and the exit path then leaves victory_core::restart::AGAIN (75) instead of the game's code. The launcher's play job loops on exactly that code, so a run restarted from the menu comes back on its own, while one started from a shell just ends with 75. The flag and the code live in victory-core so the menu and the game's exit share one definition. 913da76 then fixes how they close the game. They post WM_SYSCOMMAND with SC_CLOSE to our window, which lifecycle turns into the game's shutdown, so its saves run and the pipeline cache is written and the next run starts warm. Before, they posted WM_CLOSE to every window found, which lifecycle didn't see. Each run of a restart also gets its own play log and rereads the settings the game's menu saved during the run.
The point is mostly the cache. Closing the window the hard way loses the pipelines made in that session, which is a common reason people see stutter again on the next start.
Both applied cleanly in order on current main. Merged with the test fixes from #48, victory, victory-core (19), victory-hle and victory-gpu pass, including the commits' own tests for the exit code mapping and the launcher's decision, and clippy -D warnings reports nothing new. I didn't run the game, so the in-game flow itself is untested by me.
AI-assisted: yes
🤖 Generated with Claude Code