mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Fix rgblink error messages about prohibited sections
Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
@@ -160,12 +160,12 @@ obj_ReadRGBSection(FILE * f)
|
|||||||
errx(1, "ROMX sections can't be used with option -t.");
|
errx(1, "ROMX sections can't be used with option -t.");
|
||||||
}
|
}
|
||||||
if ((options & OPT_CONTWRAM) && (pSection->Type == SECT_WRAMX)) {
|
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) {
|
if (options & OPT_DMG_MODE) {
|
||||||
/* WRAMX sections are checked for OPT_CONTWRAM */
|
/* WRAMX sections are checked for OPT_CONTWRAM */
|
||||||
if (pSection->Type == SECT_VRAM && pSection->nBank == 1) {
|
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.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
error: VRAM bank 1 can't be used with option -w.
|
error: VRAM bank 1 can't be used with option -d.
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
error: WRAMX sections can't be used with option -w.
|
error: WRAMX sections can't be used with options -w or -d.
|
||||||
|
|||||||
Reference in New Issue
Block a user