2012-03-11 17:08:25 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Windows.Forms;
|
2013-12-24 01:06:17 +00:00
|
|
|
|
using BizHawk.Emulation.Cores.Sega.MasterSystem;
|
2013-10-25 00:57:23 +00:00
|
|
|
|
|
2013-11-03 03:54:37 +00:00
|
|
|
|
namespace BizHawk.Client.EmuHawk
|
2012-03-11 17:08:25 +00:00
|
|
|
|
{
|
2019-12-16 23:44:18 +00:00
|
|
|
|
public partial class SmsGraphicsConfig : Form
|
2012-03-11 17:08:25 +00:00
|
|
|
|
{
|
2019-12-16 23:44:18 +00:00
|
|
|
|
private readonly MainForm _mainForm;
|
|
|
|
|
private readonly SMS.SMSSettings _settings;
|
|
|
|
|
public SmsGraphicsConfig(
|
|
|
|
|
MainForm mainForm,
|
|
|
|
|
SMS.SMSSettings settings)
|
2012-03-11 17:08:25 +00:00
|
|
|
|
{
|
2019-12-16 23:44:18 +00:00
|
|
|
|
_mainForm = mainForm;
|
|
|
|
|
_settings = settings;
|
2012-03-11 17:08:25 +00:00
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void SMSGraphicsConfig_Load(object sender, EventArgs e)
|
|
|
|
|
{
|
2019-12-16 23:44:18 +00:00
|
|
|
|
DispOBJ.Checked = _settings.DispOBJ;
|
|
|
|
|
DispBG.Checked = _settings.DispBG;
|
2012-03-11 17:08:25 +00:00
|
|
|
|
}
|
|
|
|
|
|
2017-05-31 14:56:51 +00:00
|
|
|
|
private void Ok_Click(object sender, EventArgs e)
|
2012-03-11 17:08:25 +00:00
|
|
|
|
{
|
2019-12-16 23:44:18 +00:00
|
|
|
|
_settings.DispOBJ = DispOBJ.Checked;
|
|
|
|
|
_settings.DispBG = DispBG.Checked;
|
|
|
|
|
_mainForm.PutCoreSettings(_settings);
|
2013-04-15 02:14:14 +00:00
|
|
|
|
Close();
|
2012-03-11 17:08:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|