NES 2.0: Add preliminary support for iNES 2.0 format
Currently reads and sets the following: - mapper number up to 4095, prg rom size, chr rom size - chr ram (volatile + non-volatile), region (ntsc, pal, dendy or multi-region) todo: submapper handling, w-ram and prg nvram at least...
This commit is contained in:
@@ -217,9 +217,9 @@ void UNROM512_Init(CartInfo *info) {
|
||||
flash_bank = 0;
|
||||
flash_save = info->battery;
|
||||
|
||||
if (info->vram_size == 8192)
|
||||
if (info->chrRam == 8192)
|
||||
chrram_mask = 0;
|
||||
else if (info->vram_size == 16384)
|
||||
else if (info->chrRam == 16384)
|
||||
chrram_mask = 0x20;
|
||||
else
|
||||
chrram_mask = 0x60;
|
||||
@@ -236,7 +236,7 @@ void UNROM512_Init(CartInfo *info) {
|
||||
SetupCartMirroring(MI_0, 0, NULL);
|
||||
break;
|
||||
case 3: /* hard four screen, last 8k of 32k RAM (flags: 4-screen + vertical) */
|
||||
SetupCartMirroring(4, 1, VROM + (info->vram_size - 8192));
|
||||
SetupCartMirroring(4, 1, VROM + (info->chrRam - 8192));
|
||||
break;
|
||||
}
|
||||
bus_conflict = !info->battery;
|
||||
|
||||
Reference in New Issue
Block a user