Apply BPS patches, like the kind you'd use for a ROM hack.
yarn global add bps.js
# Applying a patch
bps apply clean.rom patch.bps changed.rom
Note: All files are expected to be Buffer
instances.
import { applyBpsPatch } from 'bps.js';
// Applying a patch
const targetFile = applyBpsPatch(sourceFile, patchFile);
ISC © Keith McKnight