For iNES v2, attempt to detect pal/ntsc region from header

This commit is contained in:
nattthebear 2015-08-25 16:19:50 -04:00
parent ba8860b1c5
commit 56ec186b3f
1 changed files with 9 additions and 0 deletions

View File

@ -62,6 +62,15 @@ namespace BizHawk.Emulation.Cores.Nintendo.NES
case 0: CartV2.pad_v = 1; break;
case 1: CartV2.pad_h = 1; break;
}
switch (data[12] & 1)
{
case 0:
CartV2.system = "NES-NTSC";
break;
case 1:
CartV2.system = "NES-PAL";
break;
}
if ((data[6] & 4) != 0)
CartV2.trainer_size = 512;