neshawk - fix loading q-boy unif
This commit is contained in:
parent
5d59e00c20
commit
70091c7780
|
@ -50,7 +50,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Cart.wram_size = 0; // cart responds to regs in 6000:7fff
|
Cart.wram_size = 0; // cart responds to regs in 6000:7fff
|
||||||
Cart.vram_size = 0;
|
|
||||||
|
//zero 13-dec-2014 - Q-boy is example of game with vram, apparently.
|
||||||
|
//lets only clear vram if theres a chr rom
|
||||||
|
if(Cart.chr_size != 0)
|
||||||
|
Cart.vram_size = 0;
|
||||||
|
|
||||||
shiftmask = (1 << shiftout) - 1;
|
shiftmask = (1 << shiftout) - 1;
|
||||||
prg_bank_mask_32k = Cart.prg_size / 32 - 1;
|
prg_bank_mask_32k = Cart.prg_size / 32 - 1;
|
||||||
|
@ -131,6 +135,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||||
{
|
{
|
||||||
if (addr < 0x2000)
|
if (addr < 0x2000)
|
||||||
{
|
{
|
||||||
|
if(VROM == null)
|
||||||
|
return base.ReadPPU(addr);
|
||||||
|
|
||||||
int idx = addr >> 11;
|
int idx = addr >> 11;
|
||||||
// in addition to fixing V-mirroring, simple fixes us to 1 bank
|
// in addition to fixing V-mirroring, simple fixes us to 1 bank
|
||||||
// this means for type C, simple has 1 8KiB chr bank
|
// this means for type C, simple has 1 8KiB chr bank
|
||||||
|
|
|
@ -630,6 +630,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||||
{
|
{
|
||||||
LoadWriteLine("Using information from UNIF header");
|
LoadWriteLine("Using information from UNIF header");
|
||||||
choice = unif.CartInfo;
|
choice = unif.CartInfo;
|
||||||
|
//ok, i have this Q-Boy rom with no VROM and no VRAM.
|
||||||
|
//looks like FCEUX policy is to allocate 8KB of chr ram no matter what UNLESS certain flags are set.
|
||||||
|
//we'll let individual boards override that and set 8KB here
|
||||||
|
choice.vram_size = 8;
|
||||||
|
//(do we need to suppress this in case theres a CHR rom? probably not. nes board base will use ram if no rom is available)
|
||||||
origin = EDetectionOrigin.UNIF;
|
origin = EDetectionOrigin.UNIF;
|
||||||
}
|
}
|
||||||
if (iNesHeaderInfo != null)
|
if (iNesHeaderInfo != null)
|
||||||
|
|
Loading…
Reference in New Issue