Пример #1
0
 /// <summary>
 /// Public Constructor for the Engine
 /// </summary>
 /// <param name="fileName">The full path of a .nes cartridge file</param>
 public Engine(string fileName)
 {
     
     _cartridgeModel = CartridgeLoaderUtility.LoadCartridge(fileName);
     Processor = _cartridgeModel.GetProcessor();
     PictureProcessingUnit = new PPU(_cartridgeModel, Processor);
 }
Пример #2
0
 /// <summary>
 /// Public Constructor for the Engine
 /// </summary>
 /// <param name="rawBytes">The raw bytes from a .net cartridge file</param>
 public Engine(byte[] rawBytes)
 {
     _cartridgeModel       = CartridgeLoaderUtility.LoadCartridge(rawBytes);
     Processor             = _cartridgeModel.GetProcessor();
     PictureProcessingUnit = new PPU(_cartridgeModel, Processor);
 }
Пример #3
0
 /// <summary>
 /// Public Constructor for the Engine
 /// </summary>
 /// <param name="fileName">The full path of a .nes cartridge file</param>
 public Engine(string fileName)
 {
     _cartridgeModel       = CartridgeLoaderUtility.LoadCartridge(fileName);
     Processor             = _cartridgeModel.GetProcessor();
     PictureProcessingUnit = new PPU(_cartridgeModel, Processor);
 }
Пример #4
0
 /// <summary>
 /// Public Constructor for the Engine
 /// </summary>
 /// <param name="rawBytes">The raw bytes from a .net cartridge file</param>
 public Engine(byte[] rawBytes)
 {
     _cartridgeModel = CartridgeLoaderUtility.LoadCartridge(rawBytes);
     Processor = _cartridgeModel.GetProcessor();
     PictureProcessingUnit = new PPU(_cartridgeModel, Processor);
 }