24 internal void Validate()
26 ArgumentOutOfRangeException.ThrowIfNegativeOrZero(RelocatedFileAlignment);
27 if ((RelocatedFileAlignment & (RelocatedFileAlignment - 1)) != 0)
29 throw new ArgumentException(
"Relocated file alignment must be a power of two.", nameof(RelocatedFileAlignment));
Controls preservation-oriented image saves.
bool OverwriteDestination
Gets whether a path save may atomically replace an existing regular file.
bool VerifyOutput
Gets whether the completed output is reopened and verified.
static NdsWriteOptions Default
Uses 512-byte relocation alignment, 0xFF padding, verification, and no implicit path overwrite.
int RelocatedFileAlignment
Aligns newly appended payload starts; it must be a positive power of two and defaults to one ROM sect...
byte PaddingByte
Fills bytes between the prior used end and a relocated payload, commonly 0xFF for cartridge padding.