From 3cfc57f8a1482b30213c3e4a9f225a86b81726d4 Mon Sep 17 00:00:00 2001 From: goyuken Date: Sat, 15 Dec 2012 16:06:35 +0000 Subject: [PATCH] 7800: ignore 128 byte header, if present --- BizHawk.Emulation/Consoles/Atari/7800/Atari7800.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BizHawk.Emulation/Consoles/Atari/7800/Atari7800.cs b/BizHawk.Emulation/Consoles/Atari/7800/Atari7800.cs index 57698f5cea..62ff4030a2 100644 --- a/BizHawk.Emulation/Consoles/Atari/7800/Atari7800.cs +++ b/BizHawk.Emulation/Consoles/Atari/7800/Atari7800.cs @@ -160,6 +160,14 @@ namespace BizHawk.Emulation { EMU7800.Win.GameProgramLibrary.EMU7800DB = new EMU7800.Win.GameProgramLibrary(new StreamReader(GameDBfn)); } + + if (rom.Length % 1024 == 128) + { + Console.WriteLine("Trimming 128 byte .a78 header..."); + byte[] newrom = new byte[rom.Length - 128]; + Buffer.BlockCopy(rom, 128, newrom, 0, newrom.Length); + rom = newrom; + } GameInfo = EMU7800.Win.GameProgramLibrary.EMU7800DB.TryRecognizeRom(rom); CoreComm.RomStatusDetails = GameInfo.ToString(); Console.WriteLine("Rom Determiniation from 7800DB:");