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

Game Genie support #89

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Game Genie support #89

wants to merge 8 commits into from

Conversation

satoshinm
Copy link

Adding support for NES Game Genie codes (ROM patches)

@satoshinm satoshinm changed the title [WIP] Game Genie support Game Genie support Nov 18, 2017
@bfirsh
Copy link
Owner

bfirsh commented Nov 21, 2017

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. :)

@satoshinm
Copy link
Author

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;
Copy link
Owner

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.

@bfirsh
Copy link
Owner

bfirsh commented Nov 28, 2017

👍 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) {
Copy link
Owner

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);
Copy link
Owner

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

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.

None yet

2 participants