forked from electronicarts/CnC_Generals_Zero_Hour
-
Notifications
You must be signed in to change notification settings - Fork 187
feat: Implement game exit on ALT+F4 and window close #2336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
xezon
merged 38 commits into
TheSuperHackers:main
from
githubawn:fix/graceful-exit-logic
Apr 27, 2026
Merged
Changes from 15 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
765d92b
Implement graceful exit for Alt+F4 and window close events
githubawn 4fda496
Implement graceful exit during loading and movie screens
githubawn 4465409
Backport graceful exit logic from GeneralsMD
githubawn 036ed84
Implemented feedback
githubawn 27abc6b
Merge branch 'main' into fix/graceful-exit-logic
githubawn 6b28aed
Apply suggestion from @greptile-apps[bot]
githubawn 6f2b0b8
refine graceful exit logic and apply suggestions
githubawn c655da4
added tryStartNewGame to avoid long catch
githubawn 4b7a872
added comment and removed blank link
githubawn c6ee106
Added isquitmenuvisible as check
githubawn 5249bf9
Make m_quitToDesktopAfterMatch private.
githubawn e61b8cd
Merge branch 'main' into fix/graceful-exit-logic
githubawn f8e6218
fix upstream gamelogic
githubawn 9058ad7
added skirmish guard back
githubawn b7ded01
added Missing !getQuitting() guard in Generals WM_CLOSE
githubawn f5133f3
implement review feedback
githubawn 9025859
small changes to comments
githubawn 5e2f096
fixes frameDecompress() being called on a potentially non-ready frame
githubawn 573f408
simplified CommandXlat
githubawn abf2b36
Potential null dereference in WM_QUERYENDSESSION else branch
githubawn 4030b7d
move variable and include to more logical place
githubawn d2b15e6
Remove TheMessageStream->propagateMessages(); from LoadScreen.cpp
githubawn 0608194
implemented review feedback
githubawn d2fb136
implemented review feedback
githubawn 3493355
added guard against accidental key combo
githubawn 0f77c06
fixed double check
githubawn 60b73e2
added comment
githubawn 99de16a
updated WM_CLOSE comment
githubawn aa566ce
moved DEMO_INSTANT_QUIT out of debug in Generals
githubawn a210eb8
Remove unused Bool force parameter from GameLogic::quit
githubawn 1256c88
removed isAltF4
githubawn 071cb9f
Rename canAddMessage to isLocalPlayerReady with safe local player val…
githubawn df5fa09
remove unnecessary guard
githubawn 2b607ea
Add guard to TheGameEngine to prevent possible crashes during shutdown
githubawn 9a101d7
hardened WM_QUERYENDSESSION
githubawn caae0fa
Added null guard to canOpenQuitMenu TheGameLogic
githubawn eedcde5
fix multiplayer map abort
githubawn f23487e
Merge branch 'main' into fix/graceful-exit-logic
githubawn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.