VRC6: support arbitrary romsize through ines identification

This commit is contained in:
goyuken 2014-02-17 04:15:15 +00:00
parent 63e8702242
commit 02762576aa
1 changed files with 2 additions and 1 deletions

View File

@ -185,11 +185,12 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
else if (Cart.pcb == "351949A") else if (Cart.pcb == "351949A")
newer_variant = true; newer_variant = true;
else throw new Exception("Unknown PCB type for VRC6"); else throw new Exception("Unknown PCB type for VRC6");
AssertPrg(256); AssertChr(128, 256);
break; break;
default: default:
return false; return false;
} }
AssertPrg(256); AssertChr(128, 256); AssertVram(0); AssertWram(0, 8); AssertVram(0); AssertWram(0, 8);
prg_bank_mask_8k = Cart.prg_size / 8 - 1; prg_bank_mask_8k = Cart.prg_size / 8 - 1;
chr_bank_mask_1k = Cart.chr_size - 1; chr_bank_mask_1k = Cart.chr_size - 1;