Skip to content

Improve QuickExit so that the normal exit process also has the speed of Alt+F4 - #77

Open
DeathFishAtEase wants to merge 1 commit into
CnCNet:mainfrom
DeathFishAtEase:QuickExit
Open

Improve QuickExit so that the normal exit process also has the speed of Alt+F4#77
DeathFishAtEase wants to merge 1 commit into
CnCNet:mainfrom
DeathFishAtEase:QuickExit

Conversation

@DeathFishAtEase

Copy link
Copy Markdown
Member

Our QuickExit already implements fast exit via Alt+F4, but exiting through the normal settings page process is still as slow and painfully unpleasant as before, so I made this.

QuickExit.mp4
Before.mp4

Not quite sure if I missed any design considerations; feedback is welcome.

@github-actions

Copy link
Copy Markdown

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

@Belonit

Belonit commented Aug 23, 2026

Copy link
Copy Markdown
Member

@DeathFishAtEase What about Exit and Destruct events in multiplayer?

@Belonit Belonit changed the title Improve QuickExit so that the normal exit process also has the speed of <kbd>Alt</kbd>+<kbd>F4</kbd> Improve QuickExit so that the normal exit process also has the speed of Alt+F4 Aug 23, 2026
@Belonit
Belonit marked this pull request as draft August 23, 2026 12:21
@DeathFishAtEase

DeathFishAtEase commented Aug 23, 2026

Copy link
Copy Markdown
Member Author

Neither event is lost. Both Destruct and Exit are broadcast to the peer by the per-frame Send_Packets step before our hook ever runs; the hook only skips the local EVA-voice wait, it does not touch any network signaling.

Address Action Note
0x6471A0 ESC
0x77786B Alt+F4: Destruct(8)+EXIT(19)
0x649CA0 Send_Packets
0x4C7BDF Process Destruct
0x4C7903 Process EXIT
0x686570 DisconnectGracefully_HandleQuickExit after broadcast+processing, before EVA voice (0x686616)
0x55D14A defeat -> calls sub_685670
0x685670 quit flow -> [414]=0 -> main loop break
0x6BE091 WinMain_AfterGameLoop_HandleQuickExit after all quit flow
LAN.mp4

@Belonit
Belonit marked this pull request as ready for review August 23, 2026 18:05
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.

2 participants