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

How i can read old state? #1

Open
pavelprosto94 opened this issue Dec 3, 2023 · 1 comment
Open

How i can read old state? #1

pavelprosto94 opened this issue Dec 3, 2023 · 1 comment

Comments

@pavelprosto94
Copy link

I was able to compile this emulator on Flutter 3 and I even manage to run some ROMs. But how do I save or load the state? What variable does he write it to?

@mj-hd
Copy link
Owner

mj-hd commented Dec 6, 2023

Saving/Loading the states is not implemented yet.
https://github.com/mj-hd/dashboy#todo

Here's my work in progress commit to achieve states management: 7d82585

We have to serialize the all components(CPU/PPU/Mapper/...) states into some format (e.g. JSON, Binary, ...), then decode and restore it into the all components, this is a hard work so not completed yet.

If you are saying "save or load the state" as the normal saving feature in the game, we have to implement storing feature of SRAM to a file in the mapper.

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

No branches or pull requests

2 participants