private static NES CreateCore() { string xmlPath = Path.Combine(PathUtils.ExeDirectoryPath, "NesCarts.xml"); var bootGodBytes = File.ReadAllBytes(xmlPath); BootGodDb.GetDatabaseBytes = () => bootGodBytes; var rom = GetRom(); var gameInfo = GameInfo.NullInstance; var pathEntries = new PathEntryCollection(); pathEntries.ResolveWithDefaults(); var cfp = new CoreFileProvider(Console.WriteLine, new FirmwareManager(), pathEntries, new Dictionary <string, string>()); var coreComm = new CoreComm(Console.WriteLine, Console.WriteLine, cfp); var settings = new NES.NESSettings(); var syncSettings = new NES.NESSyncSettings(); var nes = new NES(coreComm, gameInfo, rom, settings, syncSettings); for (int i = 0; i < 200; i++) { nes.FrameAdvance(EmptyController, true, true); } return(nes); }
public void FrameAdvance() { _nes.FrameAdvance(EmptyController, true, true); }