0ad/binaries/data/mods/public/gui/session/message_box
Vantha 2520c45220 Only call Engine.EndGame right before closing
Since #7786, the GUI tick completed normally after calling
`closePageCallback` instead of being cancelled like previously. Since
`Engine.EndGame` deletes the internal `g_Game` pointer, every Engine call
after it that tried to access `g_Game` caused a segfault.
This patch solves it by moving `Engine.EndGame` to the very end, right
before closing the session page.
In order to follow the convention that only functions directly closing
the page are called `closePageCallback`, that function is in turn
renamed to `closeSession`. Additionally, this allows only resolving
the promise with a bool (`showSummary`) and then only calling
`getNextPageOpenRequest` at the end of `init` for reasons of simplicity.
2026-07-22 23:51:49 +02:00
..
DeleteSelectionConfirmation.js Fix eslint rule 'no-multi-spaces' 2025-05-03 10:50:50 +02:00
OutOfSyncNetwork.js Remove the hint that ai-rejoin isn't supported 2026-05-10 14:18:52 +02:00
OutOfSyncReplay.js SessionMessageBox class, refs #5387. 2019-10-30 11:14:55 +00:00
QuitConfirmation.js Only call Engine.EndGame right before closing 2026-07-22 23:51:49 +02:00
QuitConfirmationDefeat.js Only call Engine.EndGame right before closing 2026-07-22 23:51:49 +02:00
QuitConfirmationMenu.js Only call Engine.EndGame right before closing 2026-07-22 23:51:49 +02:00
QuitConfirmationReplay.js Only call Engine.EndGame right before closing 2026-07-22 23:51:49 +02:00
ResignConfirmation.js Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00