Add option to disable padding in rgblink

Fixes #307

RGBFIX can handle padding, so there's no reason why
we can't add an option to disable padding in rgblink.

Signed-off-by: JL2210 <larrowe.semaj11@gmail.com>
This commit is contained in:
JL2210
2020-04-13 09:57:00 -04:00
parent d6cd5823e3
commit 8b1351fc3e
3 changed files with 17 additions and 4 deletions

View File

@@ -175,9 +175,13 @@ static void writeBank(struct SortedSection *bankSections, uint16_t baseOffset,
bankSections = bankSections->next;
}
while (offset < size) {
putc(overlayFile ? getc(overlayFile) : padValue, outputFile);
offset++;
if (!disablePadding) {
while (offset < size) {
putc(overlayFile ? getc(overlayFile)
: padValue,
outputFile);
offset++;
}
}
}