Skip to content

Commit

Permalink
Test webpack build on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
bfirsh committed Dec 4, 2017
1 parent b2b24fa commit 2e28189
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ language: node_js
node_js:
- '8'
sudo: false
script:
- npm test
- npm run build
deploy:
provider: npm
email: ben+jsnes-travis@firshman.co.uk
Expand Down
11 changes: 7 additions & 4 deletions src/mappers.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ Mappers[0].prototype = {
} else if (address > 0x4017) {
this.nes.cpu.mem[address] = value;
if (address >= 0x6000 && address < 0x8000) {
// Write to SaveRAM. Store in file:
// TODO: not yet
//if(this.nes.rom!=null)
// this.nes.rom.writeBatteryRam(address,value);
// Write to persistent RAM
console.log(
"onBatteryRamWrite",
address.toString(16),
value.toString(16)
);
this.nes.opts.onBatteryRamWrite(address, value);
}
} else if (address > 0x2007 && address < 0x4000) {
this.regWrite(0x2000 + (address & 0x7), value);
Expand Down
1 change: 1 addition & 0 deletions src/nes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ var NES = function(opts) {
onFrame: function() {},
onAudioSample: null,
onStatusUpdate: function() {},
onBatteryRamWrite: function() {},

// FIXME: not actually used except for in PAPU
preferredFrameRate: 60,
Expand Down

0 comments on commit 2e28189

Please sign in to comment.