Atari 2600 - more mapper defaults based on file size

This commit is contained in:
adelikat 2014-04-02 21:07:55 +00:00
parent fabef275eb
commit 5db777afcf
1 changed files with 10 additions and 0 deletions

View File

@ -43,7 +43,9 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600
this.game = game;
if (!game.GetOptionsDict().ContainsKey("m"))
{
DetectMapper();
}
Console.WriteLine("Game uses mapper " + game.GetOptionsDict()["m"]);
HardReset();
@ -56,6 +58,14 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600
{
case 2048: m = "2K"; break;
case 4096: m = "4K"; break;
case 8192: m = "F8"; break;
case 16384: m = "F6"; break;
case 12288: m = "FA"; break;
case 32768: m = "F4"; break;
case 65536: m = "EF"; break;
case 131072: m = "MC"; break;
case 262144: m = "3F"; break;
case 524288: m = "3F"; break;
}
game.AddOption("m", m);
}