From 9f3423bd46ba59be56d694871b518ed18a91ff9b Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Wed, 13 Apr 2022 17:50:01 -0400 Subject: [PATCH] save file migration --- src/Constants.ts | 2 +- src/SaveObject.tsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Constants.ts b/src/Constants.ts index acffbf1ab..46bf33f2d 100644 --- a/src/Constants.ts +++ b/src/Constants.ts @@ -117,7 +117,7 @@ export const CONSTANTS: { LatestUpdate: string; } = { VersionString: "1.6.4", - VersionNumber: 13, + VersionNumber: 14, // Speed (in ms) at which the main loop is updated _idleSpeed: 200, diff --git a/src/SaveObject.tsx b/src/SaveObject.tsx index 46144b1ad..5179f0d2e 100755 --- a/src/SaveObject.tsx +++ b/src/SaveObject.tsx @@ -395,6 +395,9 @@ function evaluateVersionCompatibility(ver: string | number): void { delete anyPlayer.resleeves; } } + if (ver < 14) { + delete (Settings as any).EditorTheme; + } } }