2015-12-27 22:05:45 -05:00
|
|
|
|
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;
|
|
|
|
|
using Mesen.GUI.Config;
|
|
|
|
|
|
|
|
|
|
namespace Mesen.GUI.Forms.Config
|
|
|
|
|
{
|
|
|
|
|
public partial class frmPreferences : BaseConfigForm
|
|
|
|
|
{
|
|
|
|
|
public frmPreferences()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
|
|
Entity = ConfigManager.Config.PreferenceInfo;
|
|
|
|
|
|
|
|
|
|
AddBinding("SingleInstance", chkSingleInstance);
|
|
|
|
|
AddBinding("AutoLoadIpsPatches", chkAutoLoadIps);
|
|
|
|
|
AddBinding("AssociateNesFiles", chkNesFormat);
|
2016-01-31 14:03:12 -05:00
|
|
|
|
AddBinding("AssociateFdsFiles", chkFdsFormat);
|
|
|
|
|
AddBinding("AssociateMmoFiles", chkMmoFormat);
|
|
|
|
|
AddBinding("AssociateMstFiles", chkMstFormat);
|
2016-01-06 23:10:29 -05:00
|
|
|
|
|
|
|
|
|
AddBinding("UseAlternativeMmc3Irq", chkUseAlternativeMmc3Irq);
|
2016-01-14 19:52:28 -05:00
|
|
|
|
AddBinding("AllowInvalidInput", chkAllowInvalidInput);
|
2016-01-14 22:20:50 -05:00
|
|
|
|
AddBinding("RemoveSpriteLimit", chkRemoveSpriteLimit);
|
2016-01-28 20:47:16 -05:00
|
|
|
|
|
|
|
|
|
AddBinding("FdsAutoLoadDisk", chkFdsAutoLoadDisk);
|
|
|
|
|
AddBinding("FdsFastForwardOnLoad", chkFdsFastForwardOnLoad);
|
2016-01-31 13:53:17 -05:00
|
|
|
|
|
|
|
|
|
AddBinding("PauseWhenInBackground", chkPauseWhenInBackground);
|
|
|
|
|
AddBinding("AllowBackgroundInput", chkAllowBackgroundInput);
|
2016-01-31 14:28:31 -05:00
|
|
|
|
|
|
|
|
|
AddBinding("PauseOnMovieEnd", chkPauseOnMovieEnd);
|
2015-12-27 22:05:45 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void OnFormClosed(FormClosedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
base.OnFormClosed(e);
|
|
|
|
|
PreferenceInfo.ApplyConfig();
|
|
|
|
|
}
|
2016-01-31 13:53:17 -05:00
|
|
|
|
|
|
|
|
|
private void chkPauseWhenInBackground_CheckedChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
chkAllowBackgroundInput.Enabled = !chkPauseWhenInBackground.Checked;
|
|
|
|
|
if(!chkAllowBackgroundInput.Enabled) {
|
|
|
|
|
chkAllowBackgroundInput.Checked = false;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-02-06 18:35:38 -05:00
|
|
|
|
|
|
|
|
|
private void btnOpenMesenFolder_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
System.Diagnostics.Process.Start(ConfigManager.HomeFolder);
|
|
|
|
|
}
|
2015-12-27 22:05:45 -05:00
|
|
|
|
}
|
|
|
|
|
}
|