nes-add new ines detection rule for goodnes's totally un-good tetris dump

This commit is contained in:
zeromus 2011-09-06 01:51:44 +00:00
parent a8aaaef45e
commit b21c04c0a7
2 changed files with 9 additions and 4 deletions

View File

@ -308,6 +308,8 @@ namespace BizHawk.Emulation.Consoles.Nintendo
case "HVC-SNROM":
AssertPrg(128, 256); AssertChr(0); AssertVram(8); AssertWram(8);
break;
case "SxROM-JUNK":
break;
default:
return false;
}

View File

@ -24,11 +24,13 @@ namespace BizHawk.Emulation.Consoles.Nintendo
{
//if it didnt work, try again with a different wram size. because iNES is weird that way
key = string.Format("{0} {1} {2} {3} {4}", cartInfo.mapper, cartInfo.prg_size, cartInfo.chr_size, 8, cartInfo.vram_size);
Table.TryGetValue(key, out board);
if (!Table.TryGetValue(key, out board))
{
//if it still didnt work, look for one with empty keys, to detect purely based on mapper
key = string.Format("{0} {1} {2} {3} {4}", cartInfo.mapper, -1, -1, -1, -1);
Table.TryGetValue(key, out board);
}
}
return board;
}
@ -73,6 +75,7 @@ static string ClassifyTable = @"
0 16 0 8 8 NROM-HOMEBREW; some of blargg's test (sprite tests)
0 16 8 8 0 NES-NROM-128; balloon fight, but its broken right now
0 32 8 8 0 NES-NROM-256; super mario bros
1 32 128 8 0 SxROM-JUNK; 'goodnes' tetris dump
1 32 32 8 0 NES-SEROM; lolo
1 128 0 8 0 NES-SNROM; zelda
1 128 128 8 0 NES-SKROM; zelda 2