mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Restore behaviour of option -w and add option -d
rgblink option -w has been restored to its previous behaviour: make WRAM a continous section instead of spliting it into WRAM0 and WRAMX. To enable DMG mode, option -d has to be used instead. This option automatically enables -w. Update tests. Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
@@ -159,10 +159,11 @@ obj_ReadRGBSection(FILE * f)
|
||||
if ((options & OPT_TINY) && (pSection->Type == SECT_ROMX)) {
|
||||
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.");
|
||||
}
|
||||
if (options & OPT_DMG_MODE) {
|
||||
if (pSection->Type == SECT_WRAMX) {
|
||||
errx(1, "WRAMX sections can't be used with option -w.");
|
||||
}
|
||||
/* 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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user