Path Config - hook up all the browse buttons

This commit is contained in:
andres.delikat 2011-05-07 20:42:15 +00:00
parent dab3df8ea2
commit b09cd5af9e
2 changed files with 209 additions and 20 deletions

View File

@ -58,7 +58,7 @@
this.Sega8ROMsDescription = new System.Windows.Forms.Label(); this.Sega8ROMsDescription = new System.Windows.Forms.Label();
this.Sega8BrowseROMs = new System.Windows.Forms.Button(); this.Sega8BrowseROMs = new System.Windows.Forms.Button();
this.Sega8SaveRAMBox = new System.Windows.Forms.TextBox(); this.Sega8SaveRAMBox = new System.Windows.Forms.TextBox();
this.Sega8SaveRAM = new System.Windows.Forms.Label(); this.Sega8SaveRAMDescription = new System.Windows.Forms.Label();
this.Sega8BrowseSaveRAM = new System.Windows.Forms.Button(); this.Sega8BrowseSaveRAM = new System.Windows.Forms.Button();
this.Sega8SavestatesBox = new System.Windows.Forms.TextBox(); this.Sega8SavestatesBox = new System.Windows.Forms.TextBox();
this.Sega8SavestatesDescription = new System.Windows.Forms.Label(); this.Sega8SavestatesDescription = new System.Windows.Forms.Label();
@ -434,6 +434,7 @@
this.Sega8BrowseScreenshots.TabIndex = 15; this.Sega8BrowseScreenshots.TabIndex = 15;
this.Sega8BrowseScreenshots.Text = "Browse"; this.Sega8BrowseScreenshots.Text = "Browse";
this.Sega8BrowseScreenshots.UseVisualStyleBackColor = true; this.Sega8BrowseScreenshots.UseVisualStyleBackColor = true;
this.Sega8BrowseScreenshots.Click += new System.EventHandler(this.Sega8BrowseScreenshots_Click);
// //
// Sega8ROMsBox // Sega8ROMsBox
// //
@ -463,6 +464,7 @@
this.Sega8BrowseROMs.TabIndex = 11; this.Sega8BrowseROMs.TabIndex = 11;
this.Sega8BrowseROMs.Text = "Browse"; this.Sega8BrowseROMs.Text = "Browse";
this.Sega8BrowseROMs.UseVisualStyleBackColor = true; this.Sega8BrowseROMs.UseVisualStyleBackColor = true;
this.Sega8BrowseROMs.Click += new System.EventHandler(this.Sega8BrowseROMs_Click);
// //
// Sega8SaveRAMBox // Sega8SaveRAMBox
// //
@ -473,15 +475,15 @@
this.Sega8SaveRAMBox.Size = new System.Drawing.Size(280, 20); this.Sega8SaveRAMBox.Size = new System.Drawing.Size(280, 20);
this.Sega8SaveRAMBox.TabIndex = 6; this.Sega8SaveRAMBox.TabIndex = 6;
// //
// Sega8SaveRAM // Sega8SaveRAMDescription
// //
this.Sega8SaveRAM.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.Sega8SaveRAMDescription.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.Sega8SaveRAM.AutoSize = true; this.Sega8SaveRAMDescription.AutoSize = true;
this.Sega8SaveRAM.Location = new System.Drawing.Point(360, 123); this.Sega8SaveRAMDescription.Location = new System.Drawing.Point(360, 123);
this.Sega8SaveRAM.Name = "Sega8SaveRAM"; this.Sega8SaveRAMDescription.Name = "Sega8SaveRAMDescription";
this.Sega8SaveRAM.Size = new System.Drawing.Size(59, 13); this.Sega8SaveRAMDescription.Size = new System.Drawing.Size(59, 13);
this.Sega8SaveRAM.TabIndex = 9; this.Sega8SaveRAMDescription.TabIndex = 9;
this.Sega8SaveRAM.Text = "Save RAM"; this.Sega8SaveRAMDescription.Text = "Save RAM";
// //
// Sega8BrowseSaveRAM // Sega8BrowseSaveRAM
// //
@ -492,6 +494,7 @@
this.Sega8BrowseSaveRAM.TabIndex = 7; this.Sega8BrowseSaveRAM.TabIndex = 7;
this.Sega8BrowseSaveRAM.Text = "Browse"; this.Sega8BrowseSaveRAM.Text = "Browse";
this.Sega8BrowseSaveRAM.UseVisualStyleBackColor = true; this.Sega8BrowseSaveRAM.UseVisualStyleBackColor = true;
this.Sega8BrowseSaveRAM.Click += new System.EventHandler(this.Sega8BrowseSaveRAM_Click);
// //
// Sega8SavestatesBox // Sega8SavestatesBox
// //
@ -521,6 +524,7 @@
this.Sega8BrowseSavestates.TabIndex = 3; this.Sega8BrowseSavestates.TabIndex = 3;
this.Sega8BrowseSavestates.Text = "Browse"; this.Sega8BrowseSavestates.Text = "Browse";
this.Sega8BrowseSavestates.UseVisualStyleBackColor = true; this.Sega8BrowseSavestates.UseVisualStyleBackColor = true;
this.Sega8BrowseSavestates.Click += new System.EventHandler(this.Sega8BrowseSavestates_Click);
// //
// AVIBox // AVIBox
// //
@ -680,7 +684,7 @@
this.tabPage2.Controls.Add(this.Sega8SavestatesBox); this.tabPage2.Controls.Add(this.Sega8SavestatesBox);
this.tabPage2.Controls.Add(this.Sega8BrowseROMs); this.tabPage2.Controls.Add(this.Sega8BrowseROMs);
this.tabPage2.Controls.Add(this.Sega8BrowseSaveRAM); this.tabPage2.Controls.Add(this.Sega8BrowseSaveRAM);
this.tabPage2.Controls.Add(this.Sega8SaveRAM); this.tabPage2.Controls.Add(this.Sega8SaveRAMDescription);
this.tabPage2.Controls.Add(this.Sega8SaveRAMBox); this.tabPage2.Controls.Add(this.Sega8SaveRAMBox);
this.tabPage2.Location = new System.Drawing.Point(4, 22); this.tabPage2.Location = new System.Drawing.Point(4, 22);
this.tabPage2.Name = "tabPage2"; this.tabPage2.Name = "tabPage2";
@ -709,6 +713,7 @@
this.Sega8BrowseCheats.TabIndex = 25; this.Sega8BrowseCheats.TabIndex = 25;
this.Sega8BrowseCheats.Text = "Browse"; this.Sega8BrowseCheats.Text = "Browse";
this.Sega8BrowseCheats.UseVisualStyleBackColor = true; this.Sega8BrowseCheats.UseVisualStyleBackColor = true;
this.Sega8BrowseCheats.Click += new System.EventHandler(this.Sega8BrowseCheats_Click);
// //
// Sega8CheatsBox // Sega8CheatsBox
// //
@ -747,6 +752,7 @@
this.Sega8BrowseBase.TabIndex = 20; this.Sega8BrowseBase.TabIndex = 20;
this.Sega8BrowseBase.Text = "Browse"; this.Sega8BrowseBase.Text = "Browse";
this.Sega8BrowseBase.UseVisualStyleBackColor = true; this.Sega8BrowseBase.UseVisualStyleBackColor = true;
this.Sega8BrowseBase.Click += new System.EventHandler(this.Sega8BrowseBase_Click);
// //
// tabPage3 // tabPage3
// //
@ -794,6 +800,7 @@
this.GenesisBrowseCheats.TabIndex = 38; this.GenesisBrowseCheats.TabIndex = 38;
this.GenesisBrowseCheats.Text = "Browse"; this.GenesisBrowseCheats.Text = "Browse";
this.GenesisBrowseCheats.UseVisualStyleBackColor = true; this.GenesisBrowseCheats.UseVisualStyleBackColor = true;
this.GenesisBrowseCheats.Click += new System.EventHandler(this.GenesisBrowseCheats_Click);
// //
// GenesisCheatsBox // GenesisCheatsBox
// //
@ -831,6 +838,7 @@
this.GenesisBrowseSaveRAM.TabIndex = 26; this.GenesisBrowseSaveRAM.TabIndex = 26;
this.GenesisBrowseSaveRAM.Text = "Browse"; this.GenesisBrowseSaveRAM.Text = "Browse";
this.GenesisBrowseSaveRAM.UseVisualStyleBackColor = true; this.GenesisBrowseSaveRAM.UseVisualStyleBackColor = true;
this.GenesisBrowseSaveRAM.Click += new System.EventHandler(this.GenesisBrowseSaveRAM_Click);
// //
// GenesisBrowseROMs // GenesisBrowseROMs
// //
@ -841,6 +849,7 @@
this.GenesisBrowseROMs.TabIndex = 29; this.GenesisBrowseROMs.TabIndex = 29;
this.GenesisBrowseROMs.Text = "Browse"; this.GenesisBrowseROMs.Text = "Browse";
this.GenesisBrowseROMs.UseVisualStyleBackColor = true; this.GenesisBrowseROMs.UseVisualStyleBackColor = true;
this.GenesisBrowseROMs.Click += new System.EventHandler(this.GenesisBrowseROMs_Click);
// //
// GenesisBaseDescription // GenesisBaseDescription
// //
@ -909,6 +918,7 @@
this.GenesisBrowseBase.TabIndex = 35; this.GenesisBrowseBase.TabIndex = 35;
this.GenesisBrowseBase.Text = "Browse"; this.GenesisBrowseBase.Text = "Browse";
this.GenesisBrowseBase.UseVisualStyleBackColor = true; this.GenesisBrowseBase.UseVisualStyleBackColor = true;
this.GenesisBrowseBase.Click += new System.EventHandler(this.GenesisBrowseBase_Click);
// //
// GenesisSavestatesDescription // GenesisSavestatesDescription
// //
@ -929,6 +939,7 @@
this.GenesisBrowseSavestates.TabIndex = 23; this.GenesisBrowseSavestates.TabIndex = 23;
this.GenesisBrowseSavestates.Text = "Browse"; this.GenesisBrowseSavestates.Text = "Browse";
this.GenesisBrowseSavestates.UseVisualStyleBackColor = true; this.GenesisBrowseSavestates.UseVisualStyleBackColor = true;
this.GenesisBrowseSavestates.Click += new System.EventHandler(this.GenesisBrowseSavestates_Click);
// //
// GenesisBrowseScreenshots // GenesisBrowseScreenshots
// //
@ -939,6 +950,7 @@
this.GenesisBrowseScreenshots.TabIndex = 32; this.GenesisBrowseScreenshots.TabIndex = 32;
this.GenesisBrowseScreenshots.Text = "Browse"; this.GenesisBrowseScreenshots.Text = "Browse";
this.GenesisBrowseScreenshots.UseVisualStyleBackColor = true; this.GenesisBrowseScreenshots.UseVisualStyleBackColor = true;
this.GenesisBrowseScreenshots.Click += new System.EventHandler(this.GenesisBrowseScreenshots_Click);
// //
// GenesisROMsBox // GenesisROMsBox
// //
@ -995,6 +1007,7 @@
this.PCEBrowseCheats.TabIndex = 38; this.PCEBrowseCheats.TabIndex = 38;
this.PCEBrowseCheats.Text = "Browse"; this.PCEBrowseCheats.Text = "Browse";
this.PCEBrowseCheats.UseVisualStyleBackColor = true; this.PCEBrowseCheats.UseVisualStyleBackColor = true;
this.PCEBrowseCheats.Click += new System.EventHandler(this.PCEBrowseCheats_Click);
// //
// PCECheatsBox // PCECheatsBox
// //
@ -1053,6 +1066,7 @@
this.PCEBrowseBase.TabIndex = 35; this.PCEBrowseBase.TabIndex = 35;
this.PCEBrowseBase.Text = "Browse"; this.PCEBrowseBase.Text = "Browse";
this.PCEBrowseBase.UseVisualStyleBackColor = true; this.PCEBrowseBase.UseVisualStyleBackColor = true;
this.PCEBrowseBase.Click += new System.EventHandler(this.PCEBrowseBase_Click);
// //
// PCEBrowseScreenshots // PCEBrowseScreenshots
// //
@ -1063,6 +1077,7 @@
this.PCEBrowseScreenshots.TabIndex = 32; this.PCEBrowseScreenshots.TabIndex = 32;
this.PCEBrowseScreenshots.Text = "Browse"; this.PCEBrowseScreenshots.Text = "Browse";
this.PCEBrowseScreenshots.UseVisualStyleBackColor = true; this.PCEBrowseScreenshots.UseVisualStyleBackColor = true;
this.PCEBrowseScreenshots.Click += new System.EventHandler(this.PCEBrowseScreenshots_Click);
// //
// PCEROMsBox // PCEROMsBox
// //
@ -1083,6 +1098,7 @@
this.PCEBrowseSavestates.TabIndex = 23; this.PCEBrowseSavestates.TabIndex = 23;
this.PCEBrowseSavestates.Text = "Browse"; this.PCEBrowseSavestates.Text = "Browse";
this.PCEBrowseSavestates.UseVisualStyleBackColor = true; this.PCEBrowseSavestates.UseVisualStyleBackColor = true;
this.PCEBrowseSavestates.Click += new System.EventHandler(this.PCEBrowseSavestates_Click);
// //
// PCESavestatesDescription // PCESavestatesDescription
// //
@ -1123,6 +1139,7 @@
this.PCEBrowseROMs.TabIndex = 29; this.PCEBrowseROMs.TabIndex = 29;
this.PCEBrowseROMs.Text = "Browse"; this.PCEBrowseROMs.Text = "Browse";
this.PCEBrowseROMs.UseVisualStyleBackColor = true; this.PCEBrowseROMs.UseVisualStyleBackColor = true;
this.PCEBrowseROMs.Click += new System.EventHandler(this.PCEBrowseROMs_Click);
// //
// PCEBrowseSaveRAM // PCEBrowseSaveRAM
// //
@ -1133,6 +1150,7 @@
this.PCEBrowseSaveRAM.TabIndex = 26; this.PCEBrowseSaveRAM.TabIndex = 26;
this.PCEBrowseSaveRAM.Text = "Browse"; this.PCEBrowseSaveRAM.Text = "Browse";
this.PCEBrowseSaveRAM.UseVisualStyleBackColor = true; this.PCEBrowseSaveRAM.UseVisualStyleBackColor = true;
this.PCEBrowseSaveRAM.Click += new System.EventHandler(this.PCEBrowseSaveRAM_Click);
// //
// PCESaveRAMDescription // PCESaveRAMDescription
// //
@ -1199,6 +1217,7 @@
this.GBBrowseCheats.TabIndex = 38; this.GBBrowseCheats.TabIndex = 38;
this.GBBrowseCheats.Text = "Browse"; this.GBBrowseCheats.Text = "Browse";
this.GBBrowseCheats.UseVisualStyleBackColor = true; this.GBBrowseCheats.UseVisualStyleBackColor = true;
this.GBBrowseCheats.Click += new System.EventHandler(this.GBBrowseCheats_Click);
// //
// GBCheatsBox // GBCheatsBox
// //
@ -1256,6 +1275,7 @@
this.GBBrowseBase.TabIndex = 35; this.GBBrowseBase.TabIndex = 35;
this.GBBrowseBase.Text = "Browse"; this.GBBrowseBase.Text = "Browse";
this.GBBrowseBase.UseVisualStyleBackColor = true; this.GBBrowseBase.UseVisualStyleBackColor = true;
this.GBBrowseBase.Click += new System.EventHandler(this.GBBrowseBase_Click);
// //
// GBBrowseScreenshots // GBBrowseScreenshots
// //
@ -1266,6 +1286,7 @@
this.GBBrowseScreenshots.TabIndex = 32; this.GBBrowseScreenshots.TabIndex = 32;
this.GBBrowseScreenshots.Text = "Browse"; this.GBBrowseScreenshots.Text = "Browse";
this.GBBrowseScreenshots.UseVisualStyleBackColor = true; this.GBBrowseScreenshots.UseVisualStyleBackColor = true;
this.GBBrowseScreenshots.Click += new System.EventHandler(this.GBBrowseScreenshots_Click);
// //
// GBROMsBox // GBROMsBox
// //
@ -1285,6 +1306,7 @@
this.GBBrowseSavestates.TabIndex = 23; this.GBBrowseSavestates.TabIndex = 23;
this.GBBrowseSavestates.Text = "Browse"; this.GBBrowseSavestates.Text = "Browse";
this.GBBrowseSavestates.UseVisualStyleBackColor = true; this.GBBrowseSavestates.UseVisualStyleBackColor = true;
this.GBBrowseSavestates.Click += new System.EventHandler(this.GBBrowseSavestates_Click);
// //
// GBSavestatesDescription // GBSavestatesDescription
// //
@ -1324,6 +1346,7 @@
this.GBBrowseROMs.TabIndex = 29; this.GBBrowseROMs.TabIndex = 29;
this.GBBrowseROMs.Text = "Browse"; this.GBBrowseROMs.Text = "Browse";
this.GBBrowseROMs.UseVisualStyleBackColor = true; this.GBBrowseROMs.UseVisualStyleBackColor = true;
this.GBBrowseROMs.Click += new System.EventHandler(this.GBBrowseROMs_Click);
// //
// GBBrowseSaveRAM // GBBrowseSaveRAM
// //
@ -1334,6 +1357,7 @@
this.GBBrowseSaveRAM.TabIndex = 26; this.GBBrowseSaveRAM.TabIndex = 26;
this.GBBrowseSaveRAM.Text = "Browse"; this.GBBrowseSaveRAM.Text = "Browse";
this.GBBrowseSaveRAM.UseVisualStyleBackColor = true; this.GBBrowseSaveRAM.UseVisualStyleBackColor = true;
this.GBBrowseSaveRAM.Click += new System.EventHandler(this.GBBrowseSaveRAM_Click);
// //
// GBSaveRAMDescription // GBSaveRAMDescription
// //
@ -1400,6 +1424,7 @@
this.TI83BrowseBox.TabIndex = 38; this.TI83BrowseBox.TabIndex = 38;
this.TI83BrowseBox.Text = "Browse"; this.TI83BrowseBox.Text = "Browse";
this.TI83BrowseBox.UseVisualStyleBackColor = true; this.TI83BrowseBox.UseVisualStyleBackColor = true;
this.TI83BrowseBox.Click += new System.EventHandler(this.TI83BrowseBox_Click);
// //
// TI83CheatsBox // TI83CheatsBox
// //
@ -1457,6 +1482,7 @@
this.TI83BrowseBase.TabIndex = 35; this.TI83BrowseBase.TabIndex = 35;
this.TI83BrowseBase.Text = "Browse"; this.TI83BrowseBase.Text = "Browse";
this.TI83BrowseBase.UseVisualStyleBackColor = true; this.TI83BrowseBase.UseVisualStyleBackColor = true;
this.TI83BrowseBase.Click += new System.EventHandler(this.TI83BrowseBase_Click);
// //
// TI83BrowseScreenshots // TI83BrowseScreenshots
// //
@ -1467,6 +1493,7 @@
this.TI83BrowseScreenshots.TabIndex = 32; this.TI83BrowseScreenshots.TabIndex = 32;
this.TI83BrowseScreenshots.Text = "Browse"; this.TI83BrowseScreenshots.Text = "Browse";
this.TI83BrowseScreenshots.UseVisualStyleBackColor = true; this.TI83BrowseScreenshots.UseVisualStyleBackColor = true;
this.TI83BrowseScreenshots.Click += new System.EventHandler(this.TI83BrowseScreenshots_Click);
// //
// TI83ROMsBox // TI83ROMsBox
// //
@ -1487,6 +1514,7 @@
this.TI83BrowseSavestates.TabIndex = 23; this.TI83BrowseSavestates.TabIndex = 23;
this.TI83BrowseSavestates.Text = "Browse"; this.TI83BrowseSavestates.Text = "Browse";
this.TI83BrowseSavestates.UseVisualStyleBackColor = true; this.TI83BrowseSavestates.UseVisualStyleBackColor = true;
this.TI83BrowseSavestates.Click += new System.EventHandler(this.TI83BrowseSavestates_Click);
// //
// TI83SavestatesDescription // TI83SavestatesDescription
// //
@ -1526,6 +1554,7 @@
this.TI83BrowseROMs.TabIndex = 29; this.TI83BrowseROMs.TabIndex = 29;
this.TI83BrowseROMs.Text = "Browse"; this.TI83BrowseROMs.Text = "Browse";
this.TI83BrowseROMs.UseVisualStyleBackColor = true; this.TI83BrowseROMs.UseVisualStyleBackColor = true;
this.TI83BrowseROMs.Click += new System.EventHandler(this.TI83BrowseROMs_Click);
// //
// TI83BrowseSaveRAM // TI83BrowseSaveRAM
// //
@ -1536,6 +1565,7 @@
this.TI83BrowseSaveRAM.TabIndex = 26; this.TI83BrowseSaveRAM.TabIndex = 26;
this.TI83BrowseSaveRAM.Text = "Browse"; this.TI83BrowseSaveRAM.Text = "Browse";
this.TI83BrowseSaveRAM.UseVisualStyleBackColor = true; this.TI83BrowseSaveRAM.UseVisualStyleBackColor = true;
this.TI83BrowseSaveRAM.Click += new System.EventHandler(this.TI83BrowseSaveRAM_Click);
// //
// TI83SaveRAMDescription // TI83SaveRAMDescription
// //
@ -1703,7 +1733,7 @@
private System.Windows.Forms.Label Sega8ROMsDescription; private System.Windows.Forms.Label Sega8ROMsDescription;
private System.Windows.Forms.Button Sega8BrowseROMs; private System.Windows.Forms.Button Sega8BrowseROMs;
private System.Windows.Forms.TextBox Sega8SaveRAMBox; private System.Windows.Forms.TextBox Sega8SaveRAMBox;
private System.Windows.Forms.Label Sega8SaveRAM; private System.Windows.Forms.Label Sega8SaveRAMDescription;
private System.Windows.Forms.Button Sega8BrowseSaveRAM; private System.Windows.Forms.Button Sega8BrowseSaveRAM;
private System.Windows.Forms.TextBox Sega8SavestatesBox; private System.Windows.Forms.TextBox Sega8SavestatesBox;
private System.Windows.Forms.Label Sega8SavestatesDescription; private System.Windows.Forms.Label Sega8SavestatesDescription;

View File

@ -14,17 +14,26 @@ namespace BizHawk.MultiClient
public partial class PathConfig : Form public partial class PathConfig : Form
{ {
//TODO: //TODO:
// `exe` should be valid notation to mean path that the .exe is in ex: `exe`/NES //Rom loading should check for always use Recent for ROMs
// ./ and ../ are always always relative to base path // Make a path manager function to handle this
// ./ and ../ in the base path are always relative to EXE path
// `recent` notation for most recently used path
//If "always use recent path for roms" is checked then base path of each platorm should be disabled
//Path text boxes shoudl be anchored L + R and the remaining widgets anchored R
//Find a way for base to always be absolute
//Make all base path text boxes not allow %recent% //Make all base path text boxes not allow %recent%
//All path text boxes should do some kind of error checking //All path text boxes should do some kind of error checking
//Paths should default to their platform specific base before the main base! This will have to be done by specifically calling methods for each platform type
//TODO config path under base, config will default to %exe% //TODO config path under base, config will default to %exe%
//Think of other modifiers (perhaps all environment paths?)
//If enough modifiers, path boxes can do a pull down of suggestions when user types %
//******************
//Modifiers
//%exe% - path of EXE
//%recent% - most recent directory (windows environment path)
//******************
//******************
//Relative path logic
// . will always be relative to to a platform base
// unless it is a tools path or a platform base in which case it is relative to base
// base is always relative to exe
//******************
public PathConfig() public PathConfig()
{ {
@ -50,7 +59,7 @@ namespace BizHawk.MultiClient
Sega8BaseBox.Text = Global.Config.BaseSMS; Sega8BaseBox.Text = Global.Config.BaseSMS;
Sega8ROMsBox.Text = Global.Config.PathSMSROMs; Sega8ROMsBox.Text = Global.Config.PathSMSROMs;
Sega8SavestatesBox.Text = Global.Config.PathSMSSavestates; Sega8SavestatesBox.Text = Global.Config.PathSMSSavestates;
Sega8SaveRAM.Text = Global.Config.PathSMSSaveRAM; Sega8SaveRAMDescription.Text = Global.Config.PathSMSSaveRAM;
Sega8ScreenshotsBox.Text = Global.Config.PathSMSScreenshots; Sega8ScreenshotsBox.Text = Global.Config.PathSMSScreenshots;
Sega8CheatsBox.Text = Global.Config.PathSMSCheats; Sega8CheatsBox.Text = Global.Config.PathSMSCheats;
@ -219,5 +228,155 @@ namespace BizHawk.MultiClient
{ {
BrowseFolder(NESCheatsBox, NESCheatsDescription.Text, "NES"); BrowseFolder(NESCheatsBox, NESCheatsDescription.Text, "NES");
} }
private void Sega8BrowseBase_Click(object sender, EventArgs e)
{
BrowseFolder(Sega8BaseBox, Sega8BaseDescription.Text, "SMS");
}
private void Sega8BrowseROMs_Click(object sender, EventArgs e)
{
BrowseFolder(Sega8ROMsBox, Sega8ROMsDescription.Text, "SMS");
}
private void Sega8BrowseSavestates_Click(object sender, EventArgs e)
{
BrowseFolder(Sega8SavestatesBox, Sega8SavestatesDescription.Text, "SMS");
}
private void Sega8BrowseSaveRAM_Click(object sender, EventArgs e)
{
BrowseFolder(Sega8SaveRAMBox, Sega8SaveRAMDescription.Text, "SMS");
}
private void Sega8BrowseScreenshots_Click(object sender, EventArgs e)
{
BrowseFolder(Sega8ScreenshotsBox, Sega8ScreenshotsDescription.Text, "SMS");
}
private void Sega8BrowseCheats_Click(object sender, EventArgs e)
{
BrowseFolder(Sega8CheatsBox, Sega8CheatsDescription.Text, "SMS");
}
private void GenesisBrowseBase_Click(object sender, EventArgs e)
{
BrowseFolder(GenesisBaseBox, GenesisBaseDescription.Text);
}
private void GenesisBrowseROMs_Click(object sender, EventArgs e)
{
BrowseFolder(GenesisROMsBox, GenesisROMsDescription.Text, "GEN");
}
private void GenesisBrowseSavestates_Click(object sender, EventArgs e)
{
BrowseFolder(GenesisSavestatesBox, GenesisSavestatesDescription.Text, "GEN");
}
private void GenesisBrowseSaveRAM_Click(object sender, EventArgs e)
{
BrowseFolder(GenesisSaveRAMBox, GenesisSaveRAMDescription.Text, "GEN");
}
private void GenesisBrowseScreenshots_Click(object sender, EventArgs e)
{
BrowseFolder(GenesisScreenshotsBox, GenesisScreenshotsDescription.Text, "GEN");
}
private void GenesisBrowseCheats_Click(object sender, EventArgs e)
{
BrowseFolder(GenesisCheatsBox, GenesisCheatsDescription.Text, "GEN");
}
private void PCEBrowseBase_Click(object sender, EventArgs e)
{
BrowseFolder(PCEBaseBox, PCEBaseDescription.Text);
}
private void PCEBrowseROMs_Click(object sender, EventArgs e)
{
BrowseFolder(PCEROMsBox, PCEROMsDescription.Text, "PCE");
}
private void PCEBrowseSavestates_Click(object sender, EventArgs e)
{
BrowseFolder(PCESavestatesBox, PCESavestatesDescription.Text, "PCE");
}
private void PCEBrowseSaveRAM_Click(object sender, EventArgs e)
{
BrowseFolder(PCESaveRAMBox, PCESaveRAMDescription.Text, "PCE");
}
private void PCEBrowseScreenshots_Click(object sender, EventArgs e)
{
BrowseFolder(PCEScreenshotsBox, PCEScreenshotsDescription.Text, "PCE");
}
private void PCEBrowseCheats_Click(object sender, EventArgs e)
{
BrowseFolder(PCECheatsBox, PCECheatsDescription.Text, "PCE");
}
private void GBBrowseBase_Click(object sender, EventArgs e)
{
BrowseFolder(GBBaseBox, GBBaseDescription.Text);
}
private void GBBrowseROMs_Click(object sender, EventArgs e)
{
BrowseFolder(GBROMsBox, GBROMsDescription.Text, "GB");
}
private void GBBrowseSavestates_Click(object sender, EventArgs e)
{
BrowseFolder(GBSavestatesBox, GBSavestatesDescription.Text, "GB");
}
private void GBBrowseSaveRAM_Click(object sender, EventArgs e)
{
BrowseFolder(GBSaveRAMBox, GBSaveRAMDescription.Text, "GB");
}
private void GBBrowseScreenshots_Click(object sender, EventArgs e)
{
BrowseFolder(GBScreenshotsBox, GBScreenshotsDescription.Text, "GB");
}
private void GBBrowseCheats_Click(object sender, EventArgs e)
{
BrowseFolder(GBCheatsBox, GBCheatsDescription.Text, "GB");
}
private void TI83BrowseBase_Click(object sender, EventArgs e)
{
BrowseFolder(TI83BaseBox, TI83BaseDescription.Text);
}
private void TI83BrowseROMs_Click(object sender, EventArgs e)
{
BrowseFolder(TI83ROMsBox, TI83ROMsDescription.Text, "TI83");
}
private void TI83BrowseSavestates_Click(object sender, EventArgs e)
{
BrowseFolder(TI83SavestatesBox, TI83SavestatesDescription.Text, "TI83");
}
private void TI83BrowseSaveRAM_Click(object sender, EventArgs e)
{
BrowseFolder(TI83SaveRAMBox, TI83SaveRAMDescription.Text, "TI83");
}
private void TI83BrowseScreenshots_Click(object sender, EventArgs e)
{
BrowseFolder(TI83ScreenshotsBox, TI83ScreenshotsDescription.Text, "TI83");
}
private void TI83BrowseBox_Click(object sender, EventArgs e)
{
BrowseFolder(TI83CheatsBox, TI83CheatsDescription.Text, "TI83");
}
} }
} }