public Fetcher(IPixelFifo fifo, IAddressSpace videoRam0, IAddressSpace videoRam1, IAddressSpace oemRam, Lcdc lcdc, MemoryRegisters registers, bool gbc) { _gbc = gbc; _fifo = fifo; _videoRam0 = videoRam0; _videoRam1 = videoRam1; _oemRam = oemRam; _r = registers; _lcdc = lcdc; }
public PixelTransfer(IAddressSpace videoRam0, IAddressSpace videoRam1, IAddressSpace oemRam, IDisplay display, Lcdc lcdc, MemoryRegisters r, bool gbc, ColorPalette bgPalette, ColorPalette oamPalette) { _r = r; _lcdc = lcdc; _gbc = gbc; _fifo = gbc ? (IPixelFifo) new ColorPixelFifo(lcdc, display, bgPalette, oamPalette) : new DmgPixelFifo(display, r); _fetcher = new Fetcher(_fifo, videoRam0, videoRam1, oemRam, lcdc, r, gbc); }