fix this format and do this migration thing

This commit is contained in:
RandomityGuy 2026-04-06 22:38:31 +01:00
parent 56ca67cae8
commit fd121c6866
2 changed files with 14 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View file

@ -388,6 +388,8 @@ class Settings {
optionsSettings.rewindTimescale = 1;
if (optionsSettings.fpsLimit == 0 #if js || optionsSettings.fpsLimit == null #end)
optionsSettings.fpsLimit = -1;
if (optionsSettings.reflectiveMarble == false #if js || optionsSettings.reflectiveMarble == null #end)
optionsSettings.reflectiveMarble = false;
controlsSettings = json.controls;
if (json.touch != null) {
touchSettings = json.touch;
@ -395,6 +397,12 @@ class Settings {
if (controlsSettings.rewind == 0) {
controlsSettings.rewind = Key.R;
}
if (controlsSettings.blast == 0) {
controlsSettings.blast = Key.E;
}
if (controlsSettings.respawn == 0) {
controlsSettings.respawn = Key.BACKSPACE;
}
if (touchSettings.blastButtonPos == null) {
touchSettings.blastButtonPos = [300, 240];
touchSettings.blastButtonSize = 60;
@ -423,6 +431,12 @@ class Settings {
if (gamepadSettings.rewind == null) {
gamepadSettings.rewind = ["Y"];
}
if (gamepadSettings.blast == null) {
gamepadSettings.blast = ["X", "LB", "RB"];
}
if (gamepadSettings.respawn == null) {
gamepadSettings.respawn = ["back"];
}
if (json.stats != null) {
playStatistics = json.stats;
}