Skip to content
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

Save overhaul #2584

Merged
merged 22 commits into from
Jun 30, 2022
Merged

Save overhaul #2584

merged 22 commits into from
Jun 30, 2022

Conversation

Geokureli
Copy link
Member

@Geokureli Geokureli commented Jun 20, 2022

continuation of #2566

Changes the FlxSave path

// from:
"C:\Users\<username>\AppData\Roaming\<app company>\<app title>\<localPath>\<name>.sol"
// to:
"C:\Users\<username>\AppData\Roaming\<localPath>\<name>.sol"

above example is windows, mac is similar and linux should be too (testing needed). If no file is found in the new path, the old path is loaded, but flush calls will save to the new location

Misc changes

  • adds mergeData and isEmpty
  • actually passes minFileSize to SharedObject
  • FlxG.save only checks bind("flixel") if the new default bind is empty

Todos

  • Test Linux cpp builds
  • prevent creating the old "flixel" save for every game
  • default localPath to company name (?)

@Geokureli Geokureli mentioned this pull request Jun 26, 2022
10 tasks
@Geokureli Geokureli merged commit 75a2789 into HaxeFlixel:dev Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant