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

Storage abstraction #79

Merged
merged 4 commits into from
Jul 14, 2022
Merged

Storage abstraction #79

merged 4 commits into from
Jul 14, 2022

Conversation

zicklag
Copy link
Member

@zicklag zicklag commented Jul 13, 2022

Depends on #74.

This implements a Storage resource that can be used to access save data, with the details of file IO and browser local storage completely abstracted away to simple string keys and Serialize + Deserialize values.

Data is stored in YAML in the user's operating system's data dir on native, and in local storage in the browser.

Currently the abstraction isn't used anywhere, but I did test it with a simple debug gui locally.

I'll be using it to make the input mapping menu next.

@zicklag zicklag mentioned this pull request Jul 13, 2022
3 tasks
justfile Show resolved Hide resolved
@zicklag
Copy link
Member Author

zicklag commented Jul 13, 2022

And look at that, an update to the Justfile resulted in CI finishing in only 11 seconds!

zicklag and others added 4 commits July 14, 2022 08:49
WASM build was failing because we renamed the crate to punchy.
This will allow us to implement save data and persistent settings such
as input mapping.
Co-authored-by: Saverio Miroddi <saverio.pub2@gmail.com>
@zicklag zicklag force-pushed the storage-abstraction branch from 526579b to 8dcdecf Compare July 14, 2022 13:54
@zicklag zicklag merged commit a65b7c5 into fishfolk:master Jul 14, 2022
@zicklag zicklag deleted the storage-abstraction branch July 14, 2022 13:57
@odecay odecay mentioned this pull request Jul 27, 2022
3 tasks
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.

2 participants