NesHd.Core.NesEngine.NesEngine C# (CSharp) Method

NesEngine() public method

public NesEngine ( TvFormat tvFormat, PaletteFormat plFormat ) : System
tvFormat TvFormat
plFormat NesHd.Core.PPU.PaletteFormat
return System
        public NesEngine(TvFormat tvFormat, PaletteFormat plFormat)
        {
            AutoSaveSram = true;
            Debug.WriteLine(this, "Initializeing the nes emulation engine...", DebugStatus.None);
            TvFormat = tvFormat;
            //Initialize Engine
            Memory = new Memory.Memory(this);
            Cpu = new Cpu(Memory, tvFormat, this);
            Cpu.PauseToggle += CpuPauseToggle;
            Ppu = new Ppu(tvFormat, plFormat, this);
            Debug.WriteLine(this, "Nes initialized ok.", DebugStatus.Cool);
        }