Merge pull request #34 from WorstAquaPlayer/master

Fix some saving issues
This commit is contained in:
Kade M 2021-03-21 13:01:40 -07:00 committed by GitHub
commit b215f5bf2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -121,6 +121,7 @@ class OptionsMenu extends MusicBeatState
FlxG.switchState(new LoadReplayState()); FlxG.switchState(new LoadReplayState());
} }
} }
FlxG.save.flush();
} }
var isSettingControl:Bool = false; var isSettingControl:Bool = false;

View File

@ -66,6 +66,8 @@ class TitleState extends MusicBeatState
trace('NEWGROUNDS LOL'); trace('NEWGROUNDS LOL');
#end #end
FlxG.save.bind('funkin', 'ninjamuffin99');
if (FlxG.save.data.newInput == null) if (FlxG.save.data.newInput == null)
FlxG.save.data.newInput = true; FlxG.save.data.newInput = true;
@ -78,7 +80,11 @@ class TitleState extends MusicBeatState
if (FlxG.save.data.accuracyDisplay == null) if (FlxG.save.data.accuracyDisplay == null)
FlxG.save.data.accuracyDisplay = true; FlxG.save.data.accuracyDisplay = true;
FlxG.save.bind('funkin', 'ninjamuffin99'); if (FlxG.save.data.accuracyDisplay == null)
FlxG.save.data.accuracyDisplay = true;
if (FlxG.save.data.offset == null)
FlxG.save.data.offset = 0;
Highscore.load(); Highscore.load();