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

Provide persistent storage API #33

Open
lordmauve opened this Issue Aug 6, 2015 · 2 comments

Comments

Projects
None yet
1 participant
@lordmauve
Owner

lordmauve commented Aug 6, 2015

Originally reported by: Daniel Pope (Bitbucket: lordmauve, GitHub: lordmauve)


We should provide some sort of built-in shelve-style API to let users write savegame state to a sensible user data location.

If users attempt to do this themselves, for example by writing to a file in the current directory, it could cause problems when the game is distributed/installed.


@lordmauve

This comment has been minimized.

Owner

lordmauve commented Aug 6, 2015

Original comment by Daniel Pope (Bitbucket: lordmauve, GitHub: lordmauve):


Probably should limit this to JSON in a dbm.gnu database or something, rather than pickles as with shelve. This will prevent people getting into problems with unpickling after code changes.

@lordmauve

This comment has been minimized.

Owner

lordmauve commented Sep 23, 2015

Original comment by Ian Salmons (Bitbucket: Avaren, GitHub: Avaren):


First cut in pull request #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment