Example #1
0
        public void Restart()
        {
            _cgb  = Gb.IsCGBMode();
            _lcdc = 0;

            // TODO: can this be a required Emulator Service, and let the tool manage the logic of closing?
            if (!Gb.GetGPUMemoryAreas(out _vram, out _bgpal, out _sppal, out _oam))
            {
                if (Visible)
                {
                    Close();
                }
            }
            tilespal = _bgpal;

            if (_cgb)
            {
                label4.Enabled = true;
            }
            else
            {
                label4.Enabled = false;
            }
            bmpViewBG.Clear();
            bmpViewWin.Clear();
            bmpViewTiles1.Clear();
            bmpViewTiles2.Clear();
            bmpViewBGPal.Clear();
            bmpViewSPPal.Clear();
            bmpViewOAM.Clear();
            bmpViewDetails.Clear();
            bmpViewMemory.Clear();
            cbscanline_emu = -4;             // force refresh
        }
Example #2
0
        public void Restart()
        {
            _cgb    = Gb.IsCGBMode();
            _lcdc   = 0;
            _memory = Gb.GetGPU();

            tilespal = _memory.Bgpal;

            if (_cgb)
            {
                label4.Enabled = true;
            }
            else
            {
                label4.Enabled = false;
            }
            bmpViewBG.Clear();
            bmpViewWin.Clear();
            bmpViewTiles1.Clear();
            bmpViewTiles2.Clear();
            bmpViewBGPal.Clear();
            bmpViewSPPal.Clear();
            bmpViewOAM.Clear();
            bmpViewDetails.Clear();
            bmpViewMemory.Clear();
            cbscanline_emu = -4;             // force refresh
        }