0ad/binaries/data
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
..
config Fixes missing window preview on Alt+Tab 2026-07-14 19:54:00 +02:00
l10n Update Transifex configurations for the new API using the tx migrate command specified on https://github.com/transifex/cli/releases 2023-04-27 13:06:30 +00:00
mods Only call Engine.EndGame right before closing 2026-07-22 23:51:49 +02:00
tests Use @stylistic/brace-style for eslint 2026-01-12 21:33:52 +01:00
tools/atlas Add Fallback Font support 2025-05-28 01:01:03 -05:00