Skip to content

Commit

Permalink
v1.2.1
Browse files Browse the repository at this point in the history
* fixed nes.fromJSON graphic glitch:
   #16
  • Loading branch information
JoeMeeks authored and bfirsh committed Aug 24, 2021
1 parent 667d169 commit 9a312c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsnes",
"version": "1.2.0",
"version": "1.2.1",
"description": "A JavaScript NES emulator",
"homepage": "https://github.com/bfirsh/jsnes",
"author": "Ben Firshman <ben@firshman.co.uk> (https://fir.sh)",
Expand Down
3 changes: 2 additions & 1 deletion src/nes.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@ NES.prototype = {
},

fromJSON: function (s) {
this.loadROM(s.romData);
this.reset();
this.romData = s.romData;
this.cpu.fromJSON(s.cpu);
this.mmap.fromJSON(s.mmap);
this.ppu.fromJSON(s.ppu);
Expand Down

0 comments on commit 9a312c9

Please sign in to comment.