Closed ninjadynamics closed 3 years ago
Brilliant, thank you!
I'm wonder if removing saving romData
has any implications? Looks like resetting probably still works, but maybe reloadROM()
doesn't work now. I don't think we were using that for anything anyway.
Thanks!! :) I can confirm that reloadROM()
works without problems. ;)
You can check my NinjaPad project implementation, namely: https://github.com/ninjadynamics/nesdev/blob/main/ninjapad/menu.js https://github.com/ninjadynamics/nesdev/blob/main/ninjapad/interface.js
You can also try it live on mobile and desktop (ESC brings the menu). Link in the first post.
Super cool. Thanks for the contribution!
Hi!
I'm creating a mobile interface for this emulator and since I was forced to change some stuff on the source code, I guess I should create a pull request. :)
Fixed the error
this.nes.stop is not a function
when callingnes.reset()
:Improved JSON serialization:
Save state
const saveData = JSON.stringify(nes.toJSON());
Load state
nes.fromJSON(JSON.parse(saveData));