Fix rgblink error messages about prohibited sections

Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
Antonio Niño Díaz
2017-04-23 20:45:32 +02:00
parent 646d71d927
commit f2724df566
3 changed files with 4 additions and 4 deletions

View File

@@ -160,12 +160,12 @@ obj_ReadRGBSection(FILE * f)
errx(1, "ROMX sections can't be used with option -t.");
}
if ((options & OPT_CONTWRAM) && (pSection->Type == SECT_WRAMX)) {
errx(1, "WRAMX sections can't be used with option -w.");
errx(1, "WRAMX sections can't be used with options -w or -d.");
}
if (options & OPT_DMG_MODE) {
/* WRAMX sections are checked for OPT_CONTWRAM */
if (pSection->Type == SECT_VRAM && pSection->nBank == 1) {
errx(1, "VRAM bank 1 can't be used with option -w.");
errx(1, "VRAM bank 1 can't be used with option -d.");
}
}