-
Notifications
You must be signed in to change notification settings - Fork 832
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
Game Genie support #89
base: master
Are you sure you want to change the base?
Conversation
Very cool, thank you! Do you think it'd be possible to get a test for this? That'd also double as a code example, as I see you've added and then removed. :) |
Adding a real test is a good idea (maybe a code for the included Concentration Room rom), will see what I can do |
src/gg.js
Outdated
@@ -0,0 +1,124 @@ | |||
|
|||
var GG = function(nes) { | |||
this.nes = nes; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.nes
is unused, I think, so can be removed.
👍 it looks like the gamegenie class can be easily unit tested, which would probably be sufficient. An integration test on a ROM would be great too, as you suggest. Thank you! |
src/gg.js
Outdated
@@ -0,0 +1,124 @@ | |||
|
|||
var GG = function(nes) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to abbreviate - GameGenie
is much clearer.
src/nes.js
Outdated
@@ -34,6 +35,7 @@ var NES = function(opts) { | |||
this.cpu = new CPU(this); | |||
this.ppu = new PPU(this); | |||
this.papu = new PAPU(this); | |||
this.gg = new GG(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above, can be this.gameGenie
Adding support for NES Game Genie codes (ROM patches)