2019-03-12 13:20:29 -04:00
|
|
|
|
using Mesen.GUI.Config;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
namespace Mesen.GUI.Forms.Config
|
|
|
|
|
{
|
|
|
|
|
public partial class frmEmulationConfig : BaseConfigForm
|
|
|
|
|
{
|
|
|
|
|
public frmEmulationConfig()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
if(DesignMode) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Entity = ConfigManager.Config.Emulation.Clone();
|
|
|
|
|
|
|
|
|
|
AddBinding(nameof(EmulationConfig.EmulationSpeed), nudEmulationSpeed);
|
|
|
|
|
AddBinding(nameof(EmulationConfig.TurboSpeed), nudTurboSpeed);
|
|
|
|
|
AddBinding(nameof(EmulationConfig.RewindSpeed), nudRewindSpeed);
|
2019-03-14 15:25:35 -04:00
|
|
|
|
AddBinding(nameof(EmulationConfig.Region), cboRegion);
|
2019-03-12 13:20:29 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void OnApply()
|
|
|
|
|
{
|
|
|
|
|
ConfigManager.Config.Emulation = (EmulationConfig)this.Entity;
|
|
|
|
|
ConfigManager.ApplyChanges();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|