mirror of
https://github.com/libretro/Mesen.git
synced 2025-01-31 13:52:19 +00:00
HD Packs: Added option to enable/disable load of HD packs
This commit is contained in:
parent
baded7ae25
commit
291931a1b0
@ -10,6 +10,7 @@ enum EmulationFlags
|
||||
VerticalSync = 0x04,
|
||||
AllowInvalidInput = 0x08,
|
||||
RemoveSpriteLimit = 0x10,
|
||||
UseHdPacks = 0x20,
|
||||
|
||||
Mmc3IrqAltBehavior = 0x8000,
|
||||
};
|
||||
|
@ -269,7 +269,7 @@ public:
|
||||
string hdPackDefinitionFile = FolderUtilities::CombinePath(hdPackFolder, "hires.txt");
|
||||
|
||||
if(ifstream(hdPackDefinitionFile)) {
|
||||
return true;
|
||||
return EmulationSettings::CheckFlag(EmulationFlags::UseHdPacks);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
@ -22,6 +22,7 @@ namespace Mesen.GUI.Config
|
||||
public VideoAspectRatio AspectRatio = VideoAspectRatio.Auto;
|
||||
public bool VerticalSync = true;
|
||||
public bool FullscreenMode = false;
|
||||
public bool UseHdPacks = false;
|
||||
|
||||
public VideoInfo()
|
||||
{
|
||||
@ -35,6 +36,7 @@ namespace Mesen.GUI.Config
|
||||
|
||||
InteropEmu.SetFlag(EmulationFlags.ShowFPS, videoInfo.ShowFPS);
|
||||
InteropEmu.SetFlag(EmulationFlags.VerticalSync, videoInfo.VerticalSync);
|
||||
InteropEmu.SetFlag(EmulationFlags.UseHdPacks, videoInfo.UseHdPacks);
|
||||
|
||||
InteropEmu.SetOverscanDimensions(videoInfo.OverscanLeft, videoInfo.OverscanRight, videoInfo.OverscanTop, videoInfo.OverscanBottom);
|
||||
|
||||
|
9
GUI.NET/Debugger/frmBreakpoint.Designer.cs
generated
9
GUI.NET/Debugger/frmBreakpoint.Designer.cs
generated
@ -351,14 +351,6 @@
|
||||
this.chkExec.UseVisualStyleBackColor = true;
|
||||
this.chkExec.Enter += new System.EventHandler(this.chkRead_Enter);
|
||||
//
|
||||
// toolTip
|
||||
//
|
||||
this.toolTip.AutomaticDelay = 0;
|
||||
this.toolTip.AutoPopDelay = 32700;
|
||||
this.toolTip.InitialDelay = 10;
|
||||
this.toolTip.ReshowDelay = 10;
|
||||
this.toolTip.UseFading = false;
|
||||
//
|
||||
// frmBreakpoint
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
@ -401,7 +393,6 @@
|
||||
private System.Windows.Forms.Label lblCondition;
|
||||
private System.Windows.Forms.PictureBox picHelp;
|
||||
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
|
||||
private System.Windows.Forms.ToolTip toolTip;
|
||||
private System.Windows.Forms.CheckBox chkExec;
|
||||
private System.Windows.Forms.CheckBox chkRead;
|
||||
private System.Windows.Forms.CheckBox chkWrite;
|
||||
|
@ -9,6 +9,14 @@ namespace Mesen.GUI.Forms
|
||||
{
|
||||
public class BaseForm : Form
|
||||
{
|
||||
protected ToolTip toolTip;
|
||||
private System.ComponentModel.IContainer components;
|
||||
|
||||
public BaseForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
@ -17,5 +25,26 @@ namespace Mesen.GUI.Forms
|
||||
Icon = Properties.Resources.MesenIcon;
|
||||
}
|
||||
}
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// toolTip
|
||||
//
|
||||
this.toolTip.AutomaticDelay = 0;
|
||||
this.toolTip.AutoPopDelay = 32700;
|
||||
this.toolTip.InitialDelay = 10;
|
||||
this.toolTip.ReshowDelay = 10;
|
||||
//
|
||||
// BaseForm
|
||||
//
|
||||
this.ClientSize = new System.Drawing.Size(284, 262);
|
||||
this.Name = "BaseForm";
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
123
GUI.NET/Forms/BaseForm.resx
Normal file
123
GUI.NET/Forms/BaseForm.resx
Normal file
@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="toolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
278
GUI.NET/Forms/Config/frmVideoConfig.Designer.cs
generated
278
GUI.NET/Forms/Config/frmVideoConfig.Designer.cs
generated
@ -28,15 +28,19 @@
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.tlpMain = new System.Windows.Forms.TableLayoutPanel();
|
||||
this.chkShowFps = new System.Windows.Forms.CheckBox();
|
||||
this.flowLayoutPanel6 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.lblEmulationSpeed = new System.Windows.Forms.Label();
|
||||
this.nudEmulationSpeed = new System.Windows.Forms.NumericUpDown();
|
||||
this.lblEmuSpeedHint = new System.Windows.Forms.Label();
|
||||
this.chkFullscreenMode = new System.Windows.Forms.CheckBox();
|
||||
this.lblVideoScale = new System.Windows.Forms.Label();
|
||||
this.lblVideoFilter = new System.Windows.Forms.Label();
|
||||
this.cboScale = new System.Windows.Forms.ComboBox();
|
||||
this.cboFilter = new System.Windows.Forms.ComboBox();
|
||||
this.chkVerticalSync = new System.Windows.Forms.CheckBox();
|
||||
this.cboAspectRatio = new System.Windows.Forms.ComboBox();
|
||||
this.lblDisplayRatio = new System.Windows.Forms.Label();
|
||||
this.flowLayoutPanel6 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.nudEmulationSpeed = new System.Windows.Forms.NumericUpDown();
|
||||
this.lblEmuSpeedHint = new System.Windows.Forms.Label();
|
||||
this.lblEmulationSpeed = new System.Windows.Forms.Label();
|
||||
this.chkShowFps = new System.Windows.Forms.CheckBox();
|
||||
this.tabMain = new System.Windows.Forms.TabControl();
|
||||
this.tpgGeneral = new System.Windows.Forms.TabPage();
|
||||
this.tpgOverscan = new System.Windows.Forms.TabPage();
|
||||
@ -55,11 +59,10 @@
|
||||
this.flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.lblRight = new System.Windows.Forms.Label();
|
||||
this.nudOverscanRight = new System.Windows.Forms.NumericUpDown();
|
||||
this.chkVerticalSync = new System.Windows.Forms.CheckBox();
|
||||
this.cboAspectRatio = new System.Windows.Forms.ComboBox();
|
||||
this.lblDisplayRatio = new System.Windows.Forms.Label();
|
||||
this.tpgPalette = new System.Windows.Forms.TabPage();
|
||||
this.chkFullscreenMode = new System.Windows.Forms.CheckBox();
|
||||
this.chkUseHdPacks = new System.Windows.Forms.CheckBox();
|
||||
this.flowLayoutPanel7 = new System.Windows.Forms.FlowLayoutPanel();
|
||||
this.picHdNesTooltip = new System.Windows.Forms.PictureBox();
|
||||
this.tlpMain.SuspendLayout();
|
||||
this.flowLayoutPanel6.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudEmulationSpeed)).BeginInit();
|
||||
@ -77,6 +80,8 @@
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudOverscanBottom)).BeginInit();
|
||||
this.flowLayoutPanel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudOverscanRight)).BeginInit();
|
||||
this.flowLayoutPanel7.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.picHdNesTooltip)).BeginInit();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// baseConfigPanel
|
||||
@ -89,22 +94,24 @@
|
||||
this.tlpMain.ColumnCount = 2;
|
||||
this.tlpMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
|
||||
this.tlpMain.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
|
||||
this.tlpMain.Controls.Add(this.chkFullscreenMode, 0, 4);
|
||||
this.tlpMain.Controls.Add(this.chkFullscreenMode, 0, 5);
|
||||
this.tlpMain.Controls.Add(this.lblVideoScale, 0, 0);
|
||||
this.tlpMain.Controls.Add(this.lblVideoFilter, 0, 1);
|
||||
this.tlpMain.Controls.Add(this.cboScale, 1, 0);
|
||||
this.tlpMain.Controls.Add(this.cboFilter, 1, 1);
|
||||
this.tlpMain.Controls.Add(this.chkVerticalSync, 0, 3);
|
||||
this.tlpMain.Controls.Add(this.chkVerticalSync, 0, 4);
|
||||
this.tlpMain.Controls.Add(this.cboAspectRatio, 1, 2);
|
||||
this.tlpMain.Controls.Add(this.lblDisplayRatio, 0, 2);
|
||||
this.tlpMain.Controls.Add(this.flowLayoutPanel6, 1, 6);
|
||||
this.tlpMain.Controls.Add(this.lblEmulationSpeed, 0, 6);
|
||||
this.tlpMain.Controls.Add(this.chkShowFps, 0, 5);
|
||||
this.tlpMain.Controls.Add(this.flowLayoutPanel6, 1, 7);
|
||||
this.tlpMain.Controls.Add(this.lblEmulationSpeed, 0, 7);
|
||||
this.tlpMain.Controls.Add(this.chkShowFps, 0, 6);
|
||||
this.tlpMain.Controls.Add(this.flowLayoutPanel7, 0, 3);
|
||||
this.tlpMain.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.tlpMain.Location = new System.Drawing.Point(3, 3);
|
||||
this.tlpMain.Margin = new System.Windows.Forms.Padding(0, 0, 0, 0);
|
||||
this.tlpMain.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.tlpMain.Name = "tlpMain";
|
||||
this.tlpMain.RowCount = 8;
|
||||
this.tlpMain.RowCount = 9;
|
||||
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
this.tlpMain.RowStyles.Add(new System.Windows.Forms.RowStyle());
|
||||
@ -116,61 +123,17 @@
|
||||
this.tlpMain.Size = new System.Drawing.Size(348, 276);
|
||||
this.tlpMain.TabIndex = 1;
|
||||
//
|
||||
// chkShowFps
|
||||
// chkFullscreenMode
|
||||
//
|
||||
this.chkShowFps.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.chkShowFps.AutoSize = true;
|
||||
this.tlpMain.SetColumnSpan(this.chkShowFps, 2);
|
||||
this.chkShowFps.Location = new System.Drawing.Point(3, 130);
|
||||
this.chkShowFps.Name = "chkShowFps";
|
||||
this.chkShowFps.Size = new System.Drawing.Size(76, 17);
|
||||
this.chkShowFps.TabIndex = 9;
|
||||
this.chkShowFps.Text = "Show FPS";
|
||||
this.chkShowFps.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// flowLayoutPanel6
|
||||
//
|
||||
this.flowLayoutPanel6.AutoSize = true;
|
||||
this.flowLayoutPanel6.Controls.Add(this.nudEmulationSpeed);
|
||||
this.flowLayoutPanel6.Controls.Add(this.lblEmuSpeedHint);
|
||||
this.flowLayoutPanel6.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.flowLayoutPanel6.Location = new System.Drawing.Point(96, 150);
|
||||
this.flowLayoutPanel6.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.flowLayoutPanel6.Name = "flowLayoutPanel6";
|
||||
this.flowLayoutPanel6.Size = new System.Drawing.Size(252, 26);
|
||||
this.flowLayoutPanel6.TabIndex = 10;
|
||||
//
|
||||
// lblEmulationSpeed
|
||||
//
|
||||
this.lblEmulationSpeed.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.lblEmulationSpeed.AutoSize = true;
|
||||
this.lblEmulationSpeed.Location = new System.Drawing.Point(3, 156);
|
||||
this.lblEmulationSpeed.Name = "lblEmulationSpeed";
|
||||
this.lblEmulationSpeed.Size = new System.Drawing.Size(90, 13);
|
||||
this.lblEmulationSpeed.TabIndex = 0;
|
||||
this.lblEmulationSpeed.Text = "Emulation Speed:";
|
||||
//
|
||||
// nudEmulationSpeed
|
||||
//
|
||||
this.nudEmulationSpeed.Location = new System.Drawing.Point(3, 3);
|
||||
this.nudEmulationSpeed.Maximum = new decimal(new int[] {
|
||||
500,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.nudEmulationSpeed.Name = "nudEmulationSpeed";
|
||||
this.nudEmulationSpeed.Size = new System.Drawing.Size(48, 20);
|
||||
this.nudEmulationSpeed.TabIndex = 1;
|
||||
//
|
||||
// lblEmuSpeedHint
|
||||
//
|
||||
this.lblEmuSpeedHint.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.lblEmuSpeedHint.AutoSize = true;
|
||||
this.lblEmuSpeedHint.Location = new System.Drawing.Point(57, 6);
|
||||
this.lblEmuSpeedHint.Name = "lblEmuSpeedHint";
|
||||
this.lblEmuSpeedHint.Size = new System.Drawing.Size(107, 13);
|
||||
this.lblEmuSpeedHint.TabIndex = 2;
|
||||
this.lblEmuSpeedHint.Text = "(0 = Maximum speed)";
|
||||
this.chkFullscreenMode.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.chkFullscreenMode.AutoSize = true;
|
||||
this.tlpMain.SetColumnSpan(this.chkFullscreenMode, 2);
|
||||
this.chkFullscreenMode.Location = new System.Drawing.Point(3, 130);
|
||||
this.chkFullscreenMode.Name = "chkFullscreenMode";
|
||||
this.chkFullscreenMode.Size = new System.Drawing.Size(113, 17);
|
||||
this.chkFullscreenMode.TabIndex = 18;
|
||||
this.chkFullscreenMode.Text = "Fullscreen window";
|
||||
this.chkFullscreenMode.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// lblVideoScale
|
||||
//
|
||||
@ -218,6 +181,99 @@
|
||||
this.cboFilter.Size = new System.Drawing.Size(76, 21);
|
||||
this.cboFilter.TabIndex = 14;
|
||||
//
|
||||
// chkVerticalSync
|
||||
//
|
||||
this.chkVerticalSync.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.chkVerticalSync.AutoSize = true;
|
||||
this.tlpMain.SetColumnSpan(this.chkVerticalSync, 2);
|
||||
this.chkVerticalSync.Location = new System.Drawing.Point(3, 107);
|
||||
this.chkVerticalSync.Name = "chkVerticalSync";
|
||||
this.chkVerticalSync.Size = new System.Drawing.Size(121, 17);
|
||||
this.chkVerticalSync.TabIndex = 15;
|
||||
this.chkVerticalSync.Text = "Enable vertical sync";
|
||||
this.chkVerticalSync.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// cboAspectRatio
|
||||
//
|
||||
this.cboAspectRatio.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cboAspectRatio.FormattingEnabled = true;
|
||||
this.cboAspectRatio.Items.AddRange(new object[] {
|
||||
"Auto",
|
||||
"NTSC (8:7)",
|
||||
"PAL (18:13)",
|
||||
"Standard (4:3)",
|
||||
"Widescreen (16:9)"});
|
||||
this.cboAspectRatio.Location = new System.Drawing.Point(99, 57);
|
||||
this.cboAspectRatio.Name = "cboAspectRatio";
|
||||
this.cboAspectRatio.Size = new System.Drawing.Size(121, 21);
|
||||
this.cboAspectRatio.TabIndex = 16;
|
||||
//
|
||||
// lblDisplayRatio
|
||||
//
|
||||
this.lblDisplayRatio.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.lblDisplayRatio.AutoSize = true;
|
||||
this.lblDisplayRatio.Location = new System.Drawing.Point(3, 61);
|
||||
this.lblDisplayRatio.Name = "lblDisplayRatio";
|
||||
this.lblDisplayRatio.Size = new System.Drawing.Size(71, 13);
|
||||
this.lblDisplayRatio.TabIndex = 17;
|
||||
this.lblDisplayRatio.Text = "Aspect Ratio:";
|
||||
//
|
||||
// flowLayoutPanel6
|
||||
//
|
||||
this.flowLayoutPanel6.AutoSize = true;
|
||||
this.flowLayoutPanel6.Controls.Add(this.nudEmulationSpeed);
|
||||
this.flowLayoutPanel6.Controls.Add(this.lblEmuSpeedHint);
|
||||
this.flowLayoutPanel6.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.flowLayoutPanel6.Location = new System.Drawing.Point(96, 173);
|
||||
this.flowLayoutPanel6.Margin = new System.Windows.Forms.Padding(0);
|
||||
this.flowLayoutPanel6.Name = "flowLayoutPanel6";
|
||||
this.flowLayoutPanel6.Size = new System.Drawing.Size(252, 26);
|
||||
this.flowLayoutPanel6.TabIndex = 10;
|
||||
//
|
||||
// nudEmulationSpeed
|
||||
//
|
||||
this.nudEmulationSpeed.Location = new System.Drawing.Point(3, 3);
|
||||
this.nudEmulationSpeed.Maximum = new decimal(new int[] {
|
||||
500,
|
||||
0,
|
||||
0,
|
||||
0});
|
||||
this.nudEmulationSpeed.Name = "nudEmulationSpeed";
|
||||
this.nudEmulationSpeed.Size = new System.Drawing.Size(48, 20);
|
||||
this.nudEmulationSpeed.TabIndex = 1;
|
||||
//
|
||||
// lblEmuSpeedHint
|
||||
//
|
||||
this.lblEmuSpeedHint.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.lblEmuSpeedHint.AutoSize = true;
|
||||
this.lblEmuSpeedHint.Location = new System.Drawing.Point(57, 6);
|
||||
this.lblEmuSpeedHint.Name = "lblEmuSpeedHint";
|
||||
this.lblEmuSpeedHint.Size = new System.Drawing.Size(107, 13);
|
||||
this.lblEmuSpeedHint.TabIndex = 2;
|
||||
this.lblEmuSpeedHint.Text = "(0 = Maximum speed)";
|
||||
//
|
||||
// lblEmulationSpeed
|
||||
//
|
||||
this.lblEmulationSpeed.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.lblEmulationSpeed.AutoSize = true;
|
||||
this.lblEmulationSpeed.Location = new System.Drawing.Point(3, 179);
|
||||
this.lblEmulationSpeed.Name = "lblEmulationSpeed";
|
||||
this.lblEmulationSpeed.Size = new System.Drawing.Size(90, 13);
|
||||
this.lblEmulationSpeed.TabIndex = 0;
|
||||
this.lblEmulationSpeed.Text = "Emulation Speed:";
|
||||
//
|
||||
// chkShowFps
|
||||
//
|
||||
this.chkShowFps.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.chkShowFps.AutoSize = true;
|
||||
this.tlpMain.SetColumnSpan(this.chkShowFps, 2);
|
||||
this.chkShowFps.Location = new System.Drawing.Point(3, 153);
|
||||
this.chkShowFps.Name = "chkShowFps";
|
||||
this.chkShowFps.Size = new System.Drawing.Size(76, 17);
|
||||
this.chkShowFps.TabIndex = 9;
|
||||
this.chkShowFps.Text = "Show FPS";
|
||||
this.chkShowFps.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// tabMain
|
||||
//
|
||||
this.tabMain.Controls.Add(this.tpgGeneral);
|
||||
@ -412,43 +468,6 @@
|
||||
this.nudOverscanRight.Size = new System.Drawing.Size(50, 20);
|
||||
this.nudOverscanRight.TabIndex = 1;
|
||||
//
|
||||
// chkVerticalSync
|
||||
//
|
||||
this.chkVerticalSync.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.chkVerticalSync.AutoSize = true;
|
||||
this.tlpMain.SetColumnSpan(this.chkVerticalSync, 2);
|
||||
this.chkVerticalSync.Location = new System.Drawing.Point(3, 84);
|
||||
this.chkVerticalSync.Name = "chkVerticalSync";
|
||||
this.chkVerticalSync.Size = new System.Drawing.Size(121, 17);
|
||||
this.chkVerticalSync.TabIndex = 15;
|
||||
this.chkVerticalSync.Text = "Enable vertical sync";
|
||||
this.chkVerticalSync.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// cboAspectRatio
|
||||
//
|
||||
this.cboAspectRatio.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.cboAspectRatio.FormattingEnabled = true;
|
||||
this.cboAspectRatio.Items.AddRange(new object[] {
|
||||
"Auto",
|
||||
"NTSC (8:7)",
|
||||
"PAL (18:13)",
|
||||
"Standard (4:3)",
|
||||
"Widescreen (16:9)"});
|
||||
this.cboAspectRatio.Location = new System.Drawing.Point(99, 57);
|
||||
this.cboAspectRatio.Name = "cboAspectRatio";
|
||||
this.cboAspectRatio.Size = new System.Drawing.Size(121, 21);
|
||||
this.cboAspectRatio.TabIndex = 16;
|
||||
//
|
||||
// lblDisplayRatio
|
||||
//
|
||||
this.lblDisplayRatio.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.lblDisplayRatio.AutoSize = true;
|
||||
this.lblDisplayRatio.Location = new System.Drawing.Point(3, 61);
|
||||
this.lblDisplayRatio.Name = "lblDisplayRatio";
|
||||
this.lblDisplayRatio.Size = new System.Drawing.Size(71, 13);
|
||||
this.lblDisplayRatio.TabIndex = 17;
|
||||
this.lblDisplayRatio.Text = "Aspect Ratio:";
|
||||
//
|
||||
// tpgPalette
|
||||
//
|
||||
this.tpgPalette.Location = new System.Drawing.Point(4, 22);
|
||||
@ -459,17 +478,36 @@
|
||||
this.tpgPalette.Text = "Palette";
|
||||
this.tpgPalette.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// chkFullscreenMode
|
||||
// chkUseHdPacks
|
||||
//
|
||||
this.chkFullscreenMode.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.chkFullscreenMode.AutoSize = true;
|
||||
this.tlpMain.SetColumnSpan(this.chkFullscreenMode, 2);
|
||||
this.chkFullscreenMode.Location = new System.Drawing.Point(3, 107);
|
||||
this.chkFullscreenMode.Name = "chkFullscreenMode";
|
||||
this.chkFullscreenMode.Size = new System.Drawing.Size(113, 17);
|
||||
this.chkFullscreenMode.TabIndex = 18;
|
||||
this.chkFullscreenMode.Text = "Fullscreen window";
|
||||
this.chkFullscreenMode.UseVisualStyleBackColor = true;
|
||||
this.chkUseHdPacks.Anchor = System.Windows.Forms.AnchorStyles.Left;
|
||||
this.chkUseHdPacks.AutoSize = true;
|
||||
this.chkUseHdPacks.Location = new System.Drawing.Point(3, 3);
|
||||
this.chkUseHdPacks.Name = "chkUseHdPacks";
|
||||
this.chkUseHdPacks.Size = new System.Drawing.Size(134, 17);
|
||||
this.chkUseHdPacks.TabIndex = 19;
|
||||
this.chkUseHdPacks.Text = "Use HDNes HD packs";
|
||||
this.chkUseHdPacks.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// flowLayoutPanel7
|
||||
//
|
||||
this.tlpMain.SetColumnSpan(this.flowLayoutPanel7, 2);
|
||||
this.flowLayoutPanel7.Controls.Add(this.chkUseHdPacks);
|
||||
this.flowLayoutPanel7.Controls.Add(this.picHdNesTooltip);
|
||||
this.flowLayoutPanel7.Location = new System.Drawing.Point(0, 81);
|
||||
this.flowLayoutPanel7.Margin = new System.Windows.Forms.Padding(0, 0, 0, 0);
|
||||
this.flowLayoutPanel7.Name = "flowLayoutPanel7";
|
||||
this.flowLayoutPanel7.Size = new System.Drawing.Size(166, 23);
|
||||
this.flowLayoutPanel7.TabIndex = 20;
|
||||
//
|
||||
// picHdNesTooltip
|
||||
//
|
||||
this.picHdNesTooltip.Image = global::Mesen.GUI.Properties.Resources.help;
|
||||
this.picHdNesTooltip.Location = new System.Drawing.Point(143, 3);
|
||||
this.picHdNesTooltip.Name = "picHdNesTooltip";
|
||||
this.picHdNesTooltip.Size = new System.Drawing.Size(17, 17);
|
||||
this.picHdNesTooltip.TabIndex = 21;
|
||||
this.picHdNesTooltip.TabStop = false;
|
||||
//
|
||||
// frmVideoConfig
|
||||
//
|
||||
@ -505,6 +543,9 @@
|
||||
this.flowLayoutPanel2.ResumeLayout(false);
|
||||
this.flowLayoutPanel2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.nudOverscanRight)).EndInit();
|
||||
this.flowLayoutPanel7.ResumeLayout(false);
|
||||
this.flowLayoutPanel7.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)(this.picHdNesTooltip)).EndInit();
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
@ -544,5 +585,8 @@
|
||||
private System.Windows.Forms.NumericUpDown nudOverscanRight;
|
||||
private System.Windows.Forms.CheckBox chkFullscreenMode;
|
||||
private System.Windows.Forms.TabPage tpgPalette;
|
||||
private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel7;
|
||||
private System.Windows.Forms.CheckBox chkUseHdPacks;
|
||||
private System.Windows.Forms.PictureBox picHdNesTooltip;
|
||||
}
|
||||
}
|
@ -23,6 +23,7 @@ namespace Mesen.GUI.Forms.Config
|
||||
AddBinding("ShowFPS", chkShowFps);
|
||||
AddBinding("VerticalSync", chkVerticalSync);
|
||||
AddBinding("FullscreenMode", chkFullscreenMode);
|
||||
AddBinding("UseHdPacks", chkUseHdPacks);
|
||||
|
||||
AddBinding("VideoScale", cboScale);
|
||||
AddBinding("AspectRatio", cboAspectRatio);
|
||||
@ -32,6 +33,8 @@ namespace Mesen.GUI.Forms.Config
|
||||
AddBinding("OverscanRight", nudOverscanRight);
|
||||
AddBinding("OverscanTop", nudOverscanTop);
|
||||
AddBinding("OverscanBottom", nudOverscanBottom);
|
||||
|
||||
toolTip.SetToolTip(picHdNesTooltip, "This option allows Mesen to load HDNes-format HD packs if they are found." + Environment.NewLine + Environment.NewLine + "HD Packs should be placed in the \"HdPacks\" folder in a subfolder matching the name of the ROM." + Environment.NewLine + "e.g: MyRom.nes should have their HD Pack in \"HdPacks\\MyRom\\hires.txt\"." + Environment.NewLine + Environment.NewLine + "Note: Support for HD Packs is a work in progress and some limitations remain.");
|
||||
}
|
||||
|
||||
protected override void OnFormClosed(FormClosedEventArgs e)
|
||||
|
@ -361,6 +361,9 @@
|
||||
<EmbeddedResource Include="Forms\BaseConfigForm.resx">
|
||||
<DependentUpon>BaseConfigForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Forms\BaseForm.resx">
|
||||
<DependentUpon>BaseForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Forms\Cheats\frmCheat.resx">
|
||||
<DependentUpon>frmCheat.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
|
@ -433,6 +433,7 @@ namespace Mesen.GUI
|
||||
VerticalSync = 0x04,
|
||||
AllowInvalidInput = 0x08,
|
||||
RemoveSpriteLimit = 0x10,
|
||||
UseHdPacks = 0x20,
|
||||
|
||||
Mmc3IrqAltBehavior = 0x8000,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user