applyBps function

Uint8List applyBps(
  1. Uint8List rom,
  2. Uint8List patch
)

Applies a BPS patch to a ROM.

rom is the original ROM data. patch is the BPS patch data.

Returns the patched ROM data.

Throws PatchException if the patch is invalid or application fails.

Implementation

Uint8List applyBps(Uint8List rom, Uint8List patch) {
  return BpsPatcher.applyPatch(rom, patch);
}