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

Add save state support #56

Closed
4 tasks done
JaCzekanski opened this issue Aug 26, 2019 · 1 comment
Closed
4 tasks done

Add save state support #56

JaCzekanski opened this issue Aug 26, 2019 · 1 comment
Labels

Comments

@JaCzekanski
Copy link
Owner

JaCzekanski commented Aug 26, 2019

  • Compatibility with existing formats/write custom one?
  • Find binary serialization library (JSON isn't a perfect choice here: binary JSON, Cereal, ProtoBuf, something else?)
  • Serialize / deserialize state of CPU and devices
  • Compress with Zlib (already in the dependencies)
@JaCzekanski
Copy link
Owner Author

Cereal was chosen - it is quick enough for this purpose and makes the implementation of serialization very simple - almost all types used in the codebase are supported out of the box.
Making class serializable is just a matter of adding a single templated method which references fields to be saved.

JaCzekanski added a commit that referenced this issue Sep 17, 2019
* savestate: serialize/deserialize emulator state #56

* debug: refactor debug classes

* gui: refactoring

* gui: refactored remaining windows

* system: moved system helpers to separate namespace

* github: update template to include save state info

* premake: use tabs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant