Skip to content

Actual working reset save data button #509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion source/funkin/options/categories/MiscOptions.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package funkin.options.categories;

import funkin.savedata.FunkinSave;

class MiscOptions extends OptionsScreen {
public override function new() {
Expand All @@ -26,7 +27,9 @@ class MiscOptions extends OptionsScreen {
"Reset Save Data",
"Select this option to reset save data. This will remove all of your highscores.",
function() {
// TODO: SAVE DATA RESETTING
FunkinSave.save.erase();
FunkinSave.init();
FunkinSave.flush();
}));
}
}
1 change: 1 addition & 0 deletions source/funkin/savedata/FunkinSave.hx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class FunkinSave {
public static var save:FlxSave;

public static function init() {
highscores.clear();
//trace(Application.current.meta.get('save-path'));
//trace(Application.current.meta.get('save-name'));
save = new FlxSave();
Expand Down