Stop main menu requiring daemon frame

This commit is contained in:
Meta Vens 2026-06-30 21:25:03 +01:00
commit c28cb4beff
2 changed files with 11 additions and 2 deletions

View file

@ -164,6 +164,10 @@ public class MainMenu : MonoBehaviour
.SectorMap
.Latest();
}
catch (KeyNotFoundException ex) when (IsMissingDaemonFrame(ex))
{
return null;
}
catch (Exception ex)
{
Debug.LogError($"Failed to bind typed Aetheria sector-map state for the main menu: {ex}");
@ -209,6 +213,11 @@ public class MainMenu : MonoBehaviour
}
}
private static bool IsMissingDaemonFrame(KeyNotFoundException ex)
{
return ex?.Message?.Contains("daemon:aetheria.frame.latest.v1", StringComparison.Ordinal) == true;
}
private void ContinueGame()
{
if (!TryStartDaemonObservedGame("Continuing Daemon Run"))