Stop main menu requiring daemon frame
This commit is contained in:
parent
c95677375e
commit
c28cb4beff
2 changed files with 11 additions and 2 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue