mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Invert logic for section max sizes
Prep for the next commit
This commit is contained in:
@@ -177,10 +177,10 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Patch the size array depending on command-line options */
|
/* Patch the size array depending on command-line options */
|
||||||
if (is32kMode)
|
if (!is32kMode)
|
||||||
maxsize[SECTTYPE_ROM0] = 0x8000;
|
maxsize[SECTTYPE_ROM0] = 0x4000;
|
||||||
if (isWRA0Mode)
|
if (!isWRA0Mode)
|
||||||
maxsize[SECTTYPE_WRAM0] = 0x2000;
|
maxsize[SECTTYPE_WRAM0] = 0x1000;
|
||||||
|
|
||||||
/* Patch the bank ranges array depending on command-line options */
|
/* Patch the bank ranges array depending on command-line options */
|
||||||
if (isDmgMode)
|
if (isDmgMode)
|
||||||
|
|||||||
@@ -13,11 +13,11 @@ uint16_t startaddr[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
uint16_t maxsize[] = {
|
uint16_t maxsize[] = {
|
||||||
[SECTTYPE_ROM0] = 0x4000,
|
[SECTTYPE_ROM0] = 0x8000,
|
||||||
[SECTTYPE_ROMX] = 0x4000,
|
[SECTTYPE_ROMX] = 0x4000,
|
||||||
[SECTTYPE_VRAM] = 0x2000,
|
[SECTTYPE_VRAM] = 0x2000,
|
||||||
[SECTTYPE_SRAM] = 0x2000,
|
[SECTTYPE_SRAM] = 0x2000,
|
||||||
[SECTTYPE_WRAM0] = 0x1000,
|
[SECTTYPE_WRAM0] = 0x2000,
|
||||||
[SECTTYPE_WRAMX] = 0x1000,
|
[SECTTYPE_WRAMX] = 0x1000,
|
||||||
[SECTTYPE_OAM] = 0x00A0,
|
[SECTTYPE_OAM] = 0x00A0,
|
||||||
[SECTTYPE_HRAM] = 0x007F
|
[SECTTYPE_HRAM] = 0x007F
|
||||||
|
|||||||
Reference in New Issue
Block a user