Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/session/session.js
Show First 20 Lines • Show All 577 Lines • ▼ Show 20 Lines | if (!willRejoin && !g_IsObserver) | ||||
resignGame(true); | resignGame(true); | ||||
// Before ending the game | // Before ending the game | ||||
let replayDirectory = Engine.GetCurrentReplayDirectory(); | let replayDirectory = Engine.GetCurrentReplayDirectory(); | ||||
let simData = getReplayMetadata(); | let simData = getReplayMetadata(); | ||||
Engine.EndGame(); | Engine.EndGame(); | ||||
// After the replay file was closed in EndGame | |||||
// Done here to keep EndGame small | |||||
if (!g_IsReplay) | |||||
elexis: Correct check, because `replayDirectory` also returns the filename of the currently played… | |||||
Engine.AddReplayToCache(replayDirectory); | |||||
Done Inline ActionsIt's probably a time-saving feature that this isn't called upon Alt+F4. elexis: It's probably a time-saving feature that this isn't called upon Alt+F4. | |||||
if (g_IsController && Engine.HasXmppClient()) | if (g_IsController && Engine.HasXmppClient()) | ||||
Engine.SendUnregisterGame(); | Engine.SendUnregisterGame(); | ||||
Engine.SwitchGuiPage("page_summary.xml", { | Engine.SwitchGuiPage("page_summary.xml", { | ||||
"sim": simData, | "sim": simData, | ||||
"gui": { | "gui": { | ||||
"assignedPlayer": Engine.GetPlayerID(), | "assignedPlayer": Engine.GetPlayerID(), | ||||
"disconnected": g_Disconnected, | "disconnected": g_Disconnected, | ||||
▲ Show 20 Lines • Show All 821 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Correct check, because replayDirectory also returns the filename of the currently played replay