withArm9Overlay

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

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

Return

A copy of this ROM with the updated ARM9 overlay.

Parameters

index

Zero-based position in the ARM9 overlay table.

data

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