Mirror backgrounds correctly
[ScratchNES.git] / src / tools / rip.js
1 /* rip.js
2 * rips an NROM-32 .nes file
3 */
4
5 var fs = require("fs");
6 var name = process.argv[2].split(".").slice(0, -1).join(".");
7 var game = fs.readFileSync(process.argv[2]);
8 var PRGROM = game.slice(16, 16 + 16384);
9 fs.writeFileSync(name + ".hex", PRGROM);
This page took 0.062615 seconds and 4 git commands to generate.