Skip to content

fix(state): serialize CPU dataBus and controller state in save states#641

Open
nthbotast wants to merge 1 commit intobfirsh:mainfrom
nthbotast:fix/state-serialization-cpu-controller-614
Open

fix(state): serialize CPU dataBus and controller state in save states#641
nthbotast wants to merge 1 commit intobfirsh:mainfrom
nthbotast:fix/state-serialization-cpu-controller-614

Conversation

@nthbotast
Copy link

Summary

  • add cpu.dataBus to CPU JSON serialization so open-bus value survives save/load
  • include controller 1/2 state in NES.toJSON() and restore it in NES.fromJSON()
  • add regression tests for both CPU data bus and controller state save/restore

Closes #614

Testing

  • npm test

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.

State serialization gaps: CPU dataBus, controller state not saved

1 participant