few more bugfixes

This commit is contained in:
Olivier Gagnon
2021-11-11 23:28:08 -05:00
parent a54e613e42
commit 3112dc60c0
24 changed files with 72 additions and 86 deletions
+5 -2
View File
@@ -3,8 +3,9 @@ import Typography from "@mui/material/Typography";
import Link from "@mui/material/Link";
import Button from "@mui/material/Button";
import { Settings } from "../../Settings/Settings";
import { saveObject } from "../../SaveObject";
import { load } from "../../db";
import { IRouter } from "../Router";
import { download } from "../../SaveObject";
export let RecoveryMode = false;
@@ -22,7 +23,9 @@ export function RecoveryRoot({ router }: IProps): React.ReactElement {
router.toTerminal();
}
Settings.AutosaveInterval = 0;
saveObject.exportGame();
load().then((content) => {
download("RECOVERY.json", content);
});
return (
<>
<Typography variant="h3">RECOVERY MODE ACTIVATED</Typography>