public virtual IEnumerable <PadSchema> GetPadSchemas(IEmulator core, Action <string> showMessageBox)
 {
     return(core switch
     {
         PCEngine.PCEngine pce => PceHawkSchemas(pce, showMessageBox),
         NymaCore nyma => NymaSchemas(nyma, showMessageBox),
         _ => Enumerable.Empty <PadSchema>()
     });
예제 #2
0
파일: VPC.cs 프로젝트: xy2iii/BizHawk
        public VPC(PCEngine pce, VDC vdc1, VDC vdc2, VCE vce, HuC6280 cpu)
        {
            PCE  = pce;
            VDC1 = vdc1;
            VDC2 = vdc2;
            VCE  = vce;
            CPU  = cpu;

            // latch initial video buffer
            FrameBuffer = vdc1.GetVideoBuffer();
            FrameWidth  = vdc1.BufferWidth;
            FrameHeight = vdc1.BufferHeight;
        }
예제 #3
0
        public VDC(PCEngine pce, HuC6280 cpu, VCE vce)
        {
            this.pce = pce;
            this.cpu = cpu;
            this.vce = vce;
            RenderBackgroundScanline = RenderBackgroundScanlineUnsafe;

            Registers[HSR] = 0x00FF;
            Registers[HDR] = 0x00FF;
            Registers[VPR] = 0xFFFF;
            Registers[VCR] = 0xFFFF;
            ReadBuffer     = 0xFFFF;
        }
예제 #4
0
파일: VPC.cs 프로젝트: CadeLaRen/BizHawk
		public VPC(PCEngine pce, VDC vdc1, VDC vdc2, VCE vce, HuC6280 cpu)
		{
			PCE = pce;
			VDC1 = vdc1;
			VDC2 = vdc2;
			VCE = vce;
			CPU = cpu;

			// latch initial video buffer
			FrameBuffer = vdc1.GetVideoBuffer();
			FrameWidth = vdc1.BufferWidth;
			FrameHeight = vdc1.BufferHeight;
		}
예제 #5
0
파일: VDC.cs 프로젝트: cas1993per/bizhawk
        public VDC(PCEngine pce, HuC6280 cpu, VCE vce)
        {
            this.pce = pce;
            this.cpu = cpu;
            this.vce = vce;
            RenderBackgroundScanline = RenderBackgroundScanlineUnsafe;

            Registers[HSR] = 0x00FF;
            Registers[HDR] = 0x00FF;
            Registers[VPR] = 0xFFFF;
            Registers[VCR] = 0xFFFF;
            ReadBuffer = 0xFFFF;
        }
예제 #6
0
파일: PCECDL.cs 프로젝트: ddugovic/RASuite
		public void Restart()
		{
			if (Global.Emulator is PCEngine)
			{
				_emu = (PCEngine)Global.Emulator;
				LoggingActiveCheckbox.Checked = _emu.Cpu.CDLLoggingActive;
				_cdl = _emu.Cpu.CDL;
				_emu.InitCDLMappings();
				UpdateDisplay();
			}
			else
			{
				_emu = null;
				Close();
			}
		}
예제 #7
0
		private void PceBgViewer_Load(object sender, EventArgs e)
		{
			_pce = Global.Emulator as PCEngine;

			if (Global.Config.PceBgViewerSettings.UseWindowPosition)
			{
				Location = Global.Config.PceBgViewerSettings.WindowPosition;
			}

			if (Global.Config.PCEBGViewerRefreshRate >= RefreshRate.Minimum && Global.Config.PCEBGViewerRefreshRate <= RefreshRate.Maximum)
			{
				RefreshRate.Value = Global.Config.PCEBGViewerRefreshRate;
			}
			else
			{
				RefreshRate.Value = RefreshRate.Maximum;
			}
		}
예제 #8
0
		public void Restart()
		{
			if (!(Global.Emulator is PCEngine))
			{
				Close();
				return;
			}
			emu = (PCEngine)Global.Emulator;

			vce = emu.VCE;

			if (emu.SystemId == "SGX")
			{
				checkBoxVDC2.Enabled = true;
			}
			else
			{
				checkBoxVDC2.Enabled = false;
				checkBoxVDC2.Checked = false;
			}
			checkBoxVDC2_CheckedChanged(null, null);
		}
예제 #9
0
        // ***************************************************************************

        public ADPCM(PCEngine pcEngine, ScsiCDBus scsi)
        {
            pce       = pcEngine;
            SCSI      = scsi;
            MaxVolume = 24576;
        }
예제 #10
0
 public ScsiCDBus(PCEngine pce, Disc disc)
 {
     this.pce  = pce;
     this.disc = disc;
 }
예제 #11
0
 public ScsiCDBus(PCEngine pce, Disc disc)
 {
     this.pce = pce;
     this.disc = disc;
     DiscSectorReader = new DiscSectorReader(disc);
 }
예제 #12
0
		public void Restart()
		{
			if (Global.Emulator is PCEngine)
			{
				_pce = Global.Emulator as PCEngine;
			}
			else
			{
				Close();
			}
		}
예제 #13
0
 public ScsiCDBus(PCEngine pce, Disc disc)
 {
     this.pce      = pce;
     this.disc     = disc;
     subcodeReader = new SubcodeReader(disc);
 }
예제 #14
0
파일: ADPCM.cs 프로젝트: CadeLaRen/BizHawk
		// ***************************************************************************

		public ADPCM(PCEngine pcEngine, ScsiCDBus scsi)
		{
			pce = pcEngine;
			SCSI = scsi;
			MaxVolume = 24576;
		}
예제 #15
0
		public ScsiCDBus(PCEngine pce, Disc disc)
		{
			this.pce = pce;
			this.disc = disc;
		}
예제 #16
0
 public ScsiCDBus(PCEngine pce, Disc disc)
 {
     this.pce         = pce;
     this.disc        = disc;
     DiscSectorReader = new DiscSectorReader(disc);
 }
예제 #17
0
 public ScsiCDBus(PCEngine pce, Disc disc)
 {
     this.pce = pce;
     this.disc = disc;
     subcodeReader = new SubcodeReader(disc);
 }