import React from "react"; import Typography from "@mui/material/Typography"; import Link from "@mui/material/Link"; import Button from "@mui/material/Button"; import { Settings } from "../../Settings/Settings"; import { load } from "../../db"; import { IRouter } from "../Router"; import { download } from "../../SaveObject"; export let RecoveryMode = false; export function ActivateRecoveryMode(): void { RecoveryMode = true; } interface IProps { router: IRouter; softReset: () => void; } export function RecoveryRoot({ router, softReset }: IProps): React.ReactElement { function recover(): void { RecoveryMode = false; router.toTerminal(); } Settings.AutosaveInterval = 0; load().then((content) => { download("RECOVERY.json", content); }); return ( <> RECOVERY MODE ACTIVATED There was an error loading your save file and the game went into recovery mode. In this mode saving is disabled and the game will automatically export your save file (to prevent corruption). At this point it is recommended to alert a developer. File an issue on github Make a reddit post Post in the #bug-report channel on Discord. Please include your save file.

You can disable recovery mode now. But chances are the game will not work correctly. ); }