NES: Warn in load report if an iNES rom is marked as trainered. Unless the flag marking itself is wrong, there is a 100% chance that such a rom won't work on neshawk; which is fine.
This commit is contained in:
parent
6df5ea5a16
commit
214142b496
|
@ -83,6 +83,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
|
||||||
ret.prg_size = 256 * 16;
|
ret.prg_size = 256 * 16;
|
||||||
ret.chr_size = (short)(VROM_size * 8);
|
ret.chr_size = (short)(VROM_size * 8);
|
||||||
ret.wram_battery = (ROM_type & 2) != 0;
|
ret.wram_battery = (ROM_type & 2) != 0;
|
||||||
|
if (ROM_type.Bit(2))
|
||||||
|
report.WriteLine("DANGER: According to the flags, this iNES has a trainer in it! We don't support this garbage.");
|
||||||
|
|
||||||
if(wram_size != 0 || flags9 != 0 || flags10 != 0 || zero11 != 0 || zero12 != 0 || zero13 != 0 || zero14 != 0 || zero15 != 0)
|
if(wram_size != 0 || flags9 != 0 || flags10 != 0 || zero11 != 0 || zero12 != 0 || zero13 != 0 || zero14 != 0 || zero15 != 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue