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>() });
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; }
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; }
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(); } }
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; } }
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); }
// *************************************************************************** public ADPCM(PCEngine pcEngine, ScsiCDBus scsi) { pce = pcEngine; SCSI = scsi; MaxVolume = 24576; }
public ScsiCDBus(PCEngine pce, Disc disc) { this.pce = pce; this.disc = disc; }
public ScsiCDBus(PCEngine pce, Disc disc) { this.pce = pce; this.disc = disc; DiscSectorReader = new DiscSectorReader(disc); }
public void Restart() { if (Global.Emulator is PCEngine) { _pce = Global.Emulator as PCEngine; } else { Close(); } }
public ScsiCDBus(PCEngine pce, Disc disc) { this.pce = pce; this.disc = disc; subcodeReader = new SubcodeReader(disc); }