Play Movie dialog - Match Game Name option, checked by default.
This commit is contained in:
parent
37619ba147
commit
f1da3bfa08
|
@ -344,6 +344,7 @@
|
|||
//Play Movie Dialog
|
||||
public bool PlayMovie_IncludeSubdir = true;
|
||||
public bool PlayMovie_ShowStateFiles = false;
|
||||
public bool PlayMovie_MatchGameName = true;
|
||||
|
||||
//TI83
|
||||
public bool TI83autoloadKeyPad = true;
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
this.ShowStateFiles = new System.Windows.Forms.CheckBox();
|
||||
this.Scan = new System.Windows.Forms.Button();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.MatchGameNameCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
|
@ -262,6 +263,17 @@
|
|||
this.Scan.UseVisualStyleBackColor = true;
|
||||
this.Scan.Click += new System.EventHandler(this.Scan_Click);
|
||||
//
|
||||
// MatchGameNameCheckBox
|
||||
//
|
||||
this.MatchGameNameCheckBox.AutoSize = true;
|
||||
this.MatchGameNameCheckBox.Location = new System.Drawing.Point(260, 337);
|
||||
this.MatchGameNameCheckBox.Name = "MatchGameNameCheckBox";
|
||||
this.MatchGameNameCheckBox.Size = new System.Drawing.Size(150, 17);
|
||||
this.MatchGameNameCheckBox.TabIndex = 56;
|
||||
this.MatchGameNameCheckBox.Text = "Match current game name";
|
||||
this.MatchGameNameCheckBox.UseVisualStyleBackColor = true;
|
||||
this.MatchGameNameCheckBox.CheckedChanged += new System.EventHandler(this.MatchGameNameCheckBox_CheckedChanged);
|
||||
//
|
||||
// PlayMovie
|
||||
//
|
||||
this.AcceptButton = this.OK;
|
||||
|
@ -269,6 +281,7 @@
|
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.CancelButton = this.Cancel;
|
||||
this.ClientSize = new System.Drawing.Size(765, 387);
|
||||
this.Controls.Add(this.MatchGameNameCheckBox);
|
||||
this.Controls.Add(this.Scan);
|
||||
this.Controls.Add(this.ShowStateFiles);
|
||||
this.Controls.Add(this.IncludeSubDirectories);
|
||||
|
@ -314,5 +327,6 @@
|
|||
private System.Windows.Forms.CheckBox ShowStateFiles;
|
||||
private System.Windows.Forms.Button Scan;
|
||||
private System.Windows.Forms.ToolTip toolTip1;
|
||||
private System.Windows.Forms.CheckBox MatchGameNameCheckBox;
|
||||
}
|
||||
}
|
|
@ -167,6 +167,9 @@ namespace BizHawk.MultiClient
|
|||
m.Header.SetHeaderLine(MovieHeader.PLATFORM, "NES");
|
||||
else if (path.Extension == ".MC2")
|
||||
m.Header.SetHeaderLine(MovieHeader.PLATFORM, "PCE");
|
||||
|
||||
if (m.Header.GetHeaderLine(MovieHeader.GAMENAME) == Global.Game.Name ||
|
||||
Global.Config.PlayMovie_MatchGameName == false)
|
||||
MovieList.Add(m);
|
||||
}
|
||||
|
||||
|
@ -296,7 +299,7 @@ namespace BizHawk.MultiClient
|
|||
{
|
||||
IncludeSubDirectories.Checked = Global.Config.PlayMovie_IncludeSubdir;
|
||||
ShowStateFiles.Checked = Global.Config.PlayMovie_ShowStateFiles;
|
||||
|
||||
MatchGameNameCheckBox.Checked = Global.Config.PlayMovie_MatchGameName;
|
||||
ScanFiles();
|
||||
PreHighlightMovie();
|
||||
}
|
||||
|
@ -407,5 +410,10 @@ namespace BizHawk.MultiClient
|
|||
PreHighlightMovie();
|
||||
}
|
||||
|
||||
private void MatchGameNameCheckBox_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
Global.Config.PlayMovie_MatchGameName = MatchGameNameCheckBox.Checked;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue