private void MainForm_FormClosing(object sender, FormClosingEventArgs e) { if (_romPath != null) { GameBoyRevampedBLL.StopEmulation(); GameBoyRevampedBLL.SaveGame(); } }
private void buttonPlayStop_Click(object sender, EventArgs e) { if (buttonPlayStop.Text == "stopped") { GameBoyRevampedBLL.StartEmulation(); buttonPlayStop.Image = Resources.Stop; buttonPlayStop.Text = "running"; } else { GameBoyRevampedBLL.StopEmulation(); buttonPlayStop.Image = Resources.runbasic; buttonPlayStop.Text = "stopped"; } }