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:
goyuken 2014-01-23 00:09:05 +00:00
parent 6df5ea5a16
commit 214142b496
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
ret.prg_size = 256 * 16;
ret.chr_size = (short)(VROM_size * 8);
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)
{