UNPKG

roomie

Version:

ROM analyzer for major consoles (NDS,GBA,GB,SNES...)

10 lines (9 loc) 239 B
const fs = require("fs") module.exports = { isHiRom: (path, hex) => { return fs.statSync(path).size % fs.readFileSync(path)[0x400] === 0 ? hex + 0x8000 : hex }, name: (file) => { this.isHiRom() } }