Path Config - when in non-interim mode, lock down unreleased cores
This commit is contained in:
parent
705617566f
commit
da451381c6
|
@ -44,7 +44,7 @@
|
||||||
// OK
|
// OK
|
||||||
//
|
//
|
||||||
this.OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.OK.Location = new System.Drawing.Point(450, 411);
|
this.OK.Location = new System.Drawing.Point(471, 411);
|
||||||
this.OK.Name = "OK";
|
this.OK.Name = "OK";
|
||||||
this.OK.Size = new System.Drawing.Size(75, 23);
|
this.OK.Size = new System.Drawing.Size(75, 23);
|
||||||
this.OK.TabIndex = 0;
|
this.OK.TabIndex = 0;
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
//
|
//
|
||||||
this.Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.Cancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
this.Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||||
this.Cancel.Location = new System.Drawing.Point(531, 411);
|
this.Cancel.Location = new System.Drawing.Point(552, 411);
|
||||||
this.Cancel.Name = "Cancel";
|
this.Cancel.Name = "Cancel";
|
||||||
this.Cancel.Size = new System.Drawing.Size(75, 23);
|
this.Cancel.Size = new System.Drawing.Size(75, 23);
|
||||||
this.Cancel.TabIndex = 1;
|
this.Cancel.TabIndex = 1;
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
this.PathTabControl.Multiline = true;
|
this.PathTabControl.Multiline = true;
|
||||||
this.PathTabControl.Name = "PathTabControl";
|
this.PathTabControl.Name = "PathTabControl";
|
||||||
this.PathTabControl.SelectedIndex = 0;
|
this.PathTabControl.SelectedIndex = 0;
|
||||||
this.PathTabControl.Size = new System.Drawing.Size(594, 321);
|
this.PathTabControl.Size = new System.Drawing.Size(615, 321);
|
||||||
this.PathTabControl.TabIndex = 2;
|
this.PathTabControl.TabIndex = 2;
|
||||||
//
|
//
|
||||||
// SaveBtn
|
// SaveBtn
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
//
|
//
|
||||||
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.label1.AutoSize = true;
|
this.label1.AutoSize = true;
|
||||||
this.label1.Location = new System.Drawing.Point(506, 52);
|
this.label1.Location = new System.Drawing.Point(527, 52);
|
||||||
this.label1.Name = "label1";
|
this.label1.Name = "label1";
|
||||||
this.label1.Size = new System.Drawing.Size(97, 13);
|
this.label1.Size = new System.Drawing.Size(97, 13);
|
||||||
this.label1.TabIndex = 210;
|
this.label1.TabIndex = 210;
|
||||||
|
@ -101,7 +101,7 @@
|
||||||
//
|
//
|
||||||
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.button1.Image = global::BizHawk.MultiClient.Properties.Resources.Help;
|
this.button1.Image = global::BizHawk.MultiClient.Properties.Resources.Help;
|
||||||
this.button1.Location = new System.Drawing.Point(475, 47);
|
this.button1.Location = new System.Drawing.Point(496, 47);
|
||||||
this.button1.Name = "button1";
|
this.button1.Name = "button1";
|
||||||
this.button1.Size = new System.Drawing.Size(26, 23);
|
this.button1.Size = new System.Drawing.Size(26, 23);
|
||||||
this.button1.TabIndex = 209;
|
this.button1.TabIndex = 209;
|
||||||
|
@ -125,14 +125,14 @@
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.BasePathBox.Location = new System.Drawing.Point(12, 15);
|
this.BasePathBox.Location = new System.Drawing.Point(12, 15);
|
||||||
this.BasePathBox.Name = "BasePathBox";
|
this.BasePathBox.Name = "BasePathBox";
|
||||||
this.BasePathBox.Size = new System.Drawing.Size(489, 20);
|
this.BasePathBox.Size = new System.Drawing.Size(510, 20);
|
||||||
this.BasePathBox.TabIndex = 205;
|
this.BasePathBox.TabIndex = 205;
|
||||||
//
|
//
|
||||||
// BrowseBase
|
// BrowseBase
|
||||||
//
|
//
|
||||||
this.BrowseBase.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.BrowseBase.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.BrowseBase.Image = global::BizHawk.MultiClient.Properties.Resources.OpenFile;
|
this.BrowseBase.Image = global::BizHawk.MultiClient.Properties.Resources.OpenFile;
|
||||||
this.BrowseBase.Location = new System.Drawing.Point(509, 14);
|
this.BrowseBase.Location = new System.Drawing.Point(530, 14);
|
||||||
this.BrowseBase.Name = "BrowseBase";
|
this.BrowseBase.Name = "BrowseBase";
|
||||||
this.BrowseBase.Size = new System.Drawing.Size(26, 23);
|
this.BrowseBase.Size = new System.Drawing.Size(26, 23);
|
||||||
this.BrowseBase.TabIndex = 206;
|
this.BrowseBase.TabIndex = 206;
|
||||||
|
@ -143,7 +143,7 @@
|
||||||
//
|
//
|
||||||
this.BaseDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.BaseDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.BaseDescription.AutoSize = true;
|
this.BaseDescription.AutoSize = true;
|
||||||
this.BaseDescription.Location = new System.Drawing.Point(542, 19);
|
this.BaseDescription.Location = new System.Drawing.Point(563, 19);
|
||||||
this.BaseDescription.Name = "BaseDescription";
|
this.BaseDescription.Name = "BaseDescription";
|
||||||
this.BaseDescription.Size = new System.Drawing.Size(64, 13);
|
this.BaseDescription.Size = new System.Drawing.Size(64, 13);
|
||||||
this.BaseDescription.TabIndex = 208;
|
this.BaseDescription.TabIndex = 208;
|
||||||
|
@ -165,7 +165,7 @@
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.CancelButton = this.Cancel;
|
this.CancelButton = this.Cancel;
|
||||||
this.ClientSize = new System.Drawing.Size(618, 446);
|
this.ClientSize = new System.Drawing.Size(639, 446);
|
||||||
this.Controls.Add(this.DefaultsBtn);
|
this.Controls.Add(this.DefaultsBtn);
|
||||||
this.Controls.Add(this.label1);
|
this.Controls.Add(this.label1);
|
||||||
this.Controls.Add(this.button1);
|
this.Controls.Add(this.button1);
|
||||||
|
|
|
@ -11,6 +11,20 @@ namespace BizHawk.MultiClient
|
||||||
{
|
{
|
||||||
public partial class NewPathConfig : Form
|
public partial class NewPathConfig : Form
|
||||||
{
|
{
|
||||||
|
private void LockDownCores()
|
||||||
|
{
|
||||||
|
if (!MainForm.INTERIM)
|
||||||
|
{
|
||||||
|
string[] coresToHide = { "PSX", "GBA", "INTV", "C64", "GEN" };
|
||||||
|
|
||||||
|
foreach(string core in coresToHide)
|
||||||
|
{
|
||||||
|
TabPage tp = AllTabPages.FirstOrDefault(x => x.Name == core);
|
||||||
|
PathTabControl.TabPages.Remove(tp);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private AutoCompleteStringCollection AutoCompleteOptions
|
private AutoCompleteStringCollection AutoCompleteOptions
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -33,6 +47,7 @@ namespace BizHawk.MultiClient
|
||||||
private void NewPathConfig_Load(object sender, EventArgs e)
|
private void NewPathConfig_Load(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
LoadSettings();
|
LoadSettings();
|
||||||
|
LockDownCores();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OK_Click(object sender, EventArgs e)
|
private void OK_Click(object sender, EventArgs e)
|
||||||
|
@ -119,7 +134,7 @@ namespace BizHawk.MultiClient
|
||||||
{
|
{
|
||||||
TabPage t = new TabPage()
|
TabPage t = new TabPage()
|
||||||
{
|
{
|
||||||
Text = systemId,
|
Text = systemId == "SG" ? "SG-1000" : systemId == "GEN" ? "Genesis" : systemId, //TODO: don't be hacky
|
||||||
Name = systemId,
|
Name = systemId,
|
||||||
};
|
};
|
||||||
List<PathEntry> paths = PathCollection.Where(x => x.System == systemId).OrderBy(x => x.Ordinal).ThenBy(x => x.Type).ToList();
|
List<PathEntry> paths = PathCollection.Where(x => x.System == systemId).OrderBy(x => x.Ordinal).ThenBy(x => x.Type).ToList();
|
||||||
|
@ -330,6 +345,19 @@ namespace BizHawk.MultiClient
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private List<TabPage> AllTabPages
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
List<TabPage> _AllTabPages = new List<TabPage>();
|
||||||
|
foreach (TabPage tp in PathTabControl.TabPages)
|
||||||
|
{
|
||||||
|
_AllTabPages.Add(tp);
|
||||||
|
}
|
||||||
|
return _AllTabPages;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void DefaultsBtn_Click(object sender, EventArgs e)
|
private void DefaultsBtn_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
DoTabs(PathEntryCollection.DefaultValues);
|
DoTabs(PathEntryCollection.DefaultValues);
|
||||||
|
|
Loading…
Reference in New Issue