Fix -w not coercing WRAMX sections to WRAM0

Fixes #1116
This commit is contained in:
Eldred Habert
2022-12-21 23:43:57 +01:00
committed by GitHub
parent 01f1703dfb
commit 50aaa6524d

View File

@@ -248,7 +248,7 @@ static void doSanityChecks(struct Section *section, void *ptr)
error(NULL, 0, "%s: WRAMX sections must be in bank 1 with options -w or -d", error(NULL, 0, "%s: WRAMX sections must be in bank 1 with options -w or -d",
section->name); section->name);
else else
section->type = SECTTYPE_WRAMX; section->type = SECTTYPE_WRAM0;
} }
if (isDmgMode && section->type == SECTTYPE_VRAM && section->bank == 1) if (isDmgMode && section->type == SECTTYPE_VRAM && section->bank == 1)
error(NULL, 0, "%s: VRAM bank 1 can't be used with option -d", error(NULL, 0, "%s: VRAM bank 1 can't be used with option -d",