Snapshot for release 2026.10.12.1 (internal ef4d41d)

This commit is contained in:
Tom Bohar 2026-10-12 00:33:12 -04:00
commit b0f9d74b21
54 changed files with 5062 additions and 935 deletions

View file

@ -59,6 +59,9 @@ internal static class GameTickHooks
public static bool IsInstalled => Volatile.Read(ref _installed) != 0;
/// <summary>Client::UseTime returned 0: AC's game loop is exiting (any exit path).</summary>
public static bool GameLoopExiting => Volatile.Read(ref _exitLatch) != 0;
public static void Initialize()
{
if (Interlocked.CompareExchange(ref _installed, 1, 0) != 0)
@ -203,6 +206,10 @@ internal static class GameTickHooks
// Flight recorder: per-second summary, stall detectors, scheduled automatic dump.
try { Net.FlightRecorder.MainTick(); }
catch { }
// AC's "server has disconnected" screen: close the client after a short wait so a
// launcher can relaunch it (EngineSettings.CloseOnServerDisconnect).
try { ServerDisconnectClose.MainTick(); }
catch { }
// MUST return Client::UseTime's own bool — AC loops do/while on it.
return result;