diff --git a/BizHawk.Emulation.Cores/Consoles/Atari/2600/Atari2600.cs b/BizHawk.Emulation.Cores/Consoles/Atari/2600/Atari2600.cs index 7b5f134a84..8b8ef69553 100644 --- a/BizHawk.Emulation.Cores/Consoles/Atari/2600/Atari2600.cs +++ b/BizHawk.Emulation.Cores/Consoles/Atari/2600/Atari2600.cs @@ -41,10 +41,26 @@ namespace BizHawk.Emulation.Cores.Atari.Atari2600 CoreComm.CpuTraceAvailable = true; this.rom = rom; this.game = game; + + if (!game.GetOptionsDict().ContainsKey("m")) + DetectMapper(); + Console.WriteLine("Game uses mapper " + game.GetOptionsDict()["m"]); HardReset(); } + void DetectMapper() + { + string m = "UNKNOWN"; + switch (rom.Length) + { + case 2048: m = "2K"; break; + case 4096: m = "4K"; break; + } + game.AddOption("m", m); + } + + public List> GetCpuFlagsAndRegisters() { return new List>