From 214142b496e590b7e003eb3febf45871cf0ba9b1 Mon Sep 17 00:00:00 2001 From: goyuken Date: Thu, 23 Jan 2014 00:09:05 +0000 Subject: [PATCH] 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. --- BizHawk.Emulation.Cores/Consoles/Nintendo/NES/iNES.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/iNES.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/iNES.cs index fc5e72d821..aed69be847 100644 --- a/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/iNES.cs +++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/NES/iNES.cs @@ -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) {