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:
retro-wertz
2019-07-05 22:46:22 +08:00
parent bb8aef82c1
commit 51199e59d7
5 changed files with 176 additions and 90 deletions

View File

@@ -353,7 +353,7 @@ static void CheckHashInfo(void) {
FCEU_PrintError(" For now, the information will be corrected in RAM.\n");
if (unif_db[x].boardname != NULL && strcmp((char*)unif_db[x].boardname, (char*)sboardname) != 0) {
FCEU_printf(" Boardname should be set to %s\n", unif_db[x].boardname);
sboardname = unif_db[x].boardname;
sboardname = (uint8*)unif_db[x].boardname;
}
if (unif_db[x].submapper >= 0 && unif_db[x].submapper != submapper) {
FCEU_PrintError(" Submapper should be set to %d\n", unif_db[x].submapper);