37 lines
850 B
C#
37 lines
850 B
C#
|
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);
|
|||
|
}
|
|||
|
|
|||
|
protected override void OnApply()
|
|||
|
{
|
|||
|
ConfigManager.Config.Emulation = (EmulationConfig)this.Entity;
|
|||
|
ConfigManager.ApplyChanges();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|