withArm7Overlay

fun withArm7Overlay(index: Int, data: ByteArray): NdsRom

Returns a new NdsRom with the ARM7 overlay at index replaced by data. The original instance is unchanged.

Return

A copy of this ROM with the updated ARM7 overlay.

Parameters

index

Zero-based position in the ARM7 overlay table.

data

New overlay file contents (typically BLZ-compressed ARM code).