Get started on C64 support in the multi-disk bundler
This commit is contained in:
parent
136b70fa85
commit
234cc2e5d8
|
@ -543,6 +543,18 @@ namespace BizHawk.Client.Common
|
|||
roms,
|
||||
(AppleII.Settings)GetCoreSettings<AppleII>());
|
||||
break;
|
||||
case "C64":
|
||||
var c64Assets = xmlGame.Assets.Select(a => Database.GetGameInfo(a.Value, a.Key));
|
||||
var c64Roms = xmlGame.Assets.Select(a => a.Value);
|
||||
nextEmulator = new C64(
|
||||
nextComm,
|
||||
c64Assets.FirstOrDefault(), // TODO
|
||||
c64Roms.FirstOrDefault(),
|
||||
".d64", // TODO
|
||||
(C64.C64Settings)GetCoreSettings<C64>(),
|
||||
(C64.C64SyncSettings)GetCoreSyncSettings<C64>()
|
||||
);
|
||||
break;
|
||||
case "PSX":
|
||||
var entries = xmlGame.AssetFullPaths;
|
||||
var discs = new List<Disc>();
|
||||
|
|
|
@ -28,170 +28,171 @@
|
|||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MultiDiskBundler));
|
||||
this.MultiDiskMenuStrip = new System.Windows.Forms.MenuStrip();
|
||||
this.SaveRunButton = new System.Windows.Forms.Button();
|
||||
this.CancelBtn = new System.Windows.Forms.Button();
|
||||
this.grpName = new System.Windows.Forms.GroupBox();
|
||||
this.BrowseBtn = new System.Windows.Forms.Button();
|
||||
this.NameBox = new System.Windows.Forms.TextBox();
|
||||
this.FileSelectorPanel = new System.Windows.Forms.Panel();
|
||||
this.AddButton = new System.Windows.Forms.Button();
|
||||
this.SystemDropDown = new System.Windows.Forms.ComboBox();
|
||||
this.SystemLabel = new System.Windows.Forms.Label();
|
||||
this.btnRemove = new System.Windows.Forms.Button();
|
||||
this.grpName.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// MultiDiskMenuStrip
|
||||
//
|
||||
this.MultiDiskMenuStrip.Location = new System.Drawing.Point(0, 0);
|
||||
this.MultiDiskMenuStrip.Name = "MultiDiskMenuStrip";
|
||||
this.MultiDiskMenuStrip.Size = new System.Drawing.Size(506, 24);
|
||||
this.MultiDiskMenuStrip.TabIndex = 0;
|
||||
this.MultiDiskMenuStrip.Text = "menuStrip1";
|
||||
//
|
||||
// SaveRunButton
|
||||
//
|
||||
this.SaveRunButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.SaveRunButton.Enabled = false;
|
||||
this.SaveRunButton.Location = new System.Drawing.Point(343, 329);
|
||||
this.SaveRunButton.Name = "SaveRunButton";
|
||||
this.SaveRunButton.Size = new System.Drawing.Size(85, 23);
|
||||
this.SaveRunButton.TabIndex = 9;
|
||||
this.SaveRunButton.Text = "&Save and Run";
|
||||
this.SaveRunButton.UseVisualStyleBackColor = true;
|
||||
this.SaveRunButton.Click += new System.EventHandler(this.SaveRunButton_Click);
|
||||
//
|
||||
// CancelBtn
|
||||
//
|
||||
this.CancelBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.CancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.CancelBtn.Location = new System.Drawing.Point(434, 329);
|
||||
this.CancelBtn.Name = "CancelBtn";
|
||||
this.CancelBtn.Size = new System.Drawing.Size(60, 23);
|
||||
this.CancelBtn.TabIndex = 10;
|
||||
this.CancelBtn.Text = "&Cancel";
|
||||
this.CancelBtn.UseVisualStyleBackColor = true;
|
||||
this.CancelBtn.Click += new System.EventHandler(this.CancelBtn_Click);
|
||||
//
|
||||
// grpName
|
||||
//
|
||||
this.grpName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MultiDiskBundler));
|
||||
this.MultiDiskMenuStrip = new System.Windows.Forms.MenuStrip();
|
||||
this.SaveRunButton = new System.Windows.Forms.Button();
|
||||
this.CancelBtn = new System.Windows.Forms.Button();
|
||||
this.grpName = new System.Windows.Forms.GroupBox();
|
||||
this.BrowseBtn = new System.Windows.Forms.Button();
|
||||
this.NameBox = new System.Windows.Forms.TextBox();
|
||||
this.FileSelectorPanel = new System.Windows.Forms.Panel();
|
||||
this.AddButton = new System.Windows.Forms.Button();
|
||||
this.SystemDropDown = new System.Windows.Forms.ComboBox();
|
||||
this.SystemLabel = new System.Windows.Forms.Label();
|
||||
this.btnRemove = new System.Windows.Forms.Button();
|
||||
this.grpName.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// MultiDiskMenuStrip
|
||||
//
|
||||
this.MultiDiskMenuStrip.Location = new System.Drawing.Point(0, 0);
|
||||
this.MultiDiskMenuStrip.Name = "MultiDiskMenuStrip";
|
||||
this.MultiDiskMenuStrip.Size = new System.Drawing.Size(506, 24);
|
||||
this.MultiDiskMenuStrip.TabIndex = 0;
|
||||
this.MultiDiskMenuStrip.Text = "menuStrip1";
|
||||
//
|
||||
// SaveRunButton
|
||||
//
|
||||
this.SaveRunButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.SaveRunButton.Enabled = false;
|
||||
this.SaveRunButton.Location = new System.Drawing.Point(343, 329);
|
||||
this.SaveRunButton.Name = "SaveRunButton";
|
||||
this.SaveRunButton.Size = new System.Drawing.Size(85, 23);
|
||||
this.SaveRunButton.TabIndex = 9;
|
||||
this.SaveRunButton.Text = "&Save and Run";
|
||||
this.SaveRunButton.UseVisualStyleBackColor = true;
|
||||
this.SaveRunButton.Click += new System.EventHandler(this.SaveRunButton_Click);
|
||||
//
|
||||
// CancelBtn
|
||||
//
|
||||
this.CancelBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.CancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||
this.CancelBtn.Location = new System.Drawing.Point(434, 329);
|
||||
this.CancelBtn.Name = "CancelBtn";
|
||||
this.CancelBtn.Size = new System.Drawing.Size(60, 23);
|
||||
this.CancelBtn.TabIndex = 10;
|
||||
this.CancelBtn.Text = "&Cancel";
|
||||
this.CancelBtn.UseVisualStyleBackColor = true;
|
||||
this.CancelBtn.Click += new System.EventHandler(this.CancelBtn_Click);
|
||||
//
|
||||
// grpName
|
||||
//
|
||||
this.grpName.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.grpName.Controls.Add(this.BrowseBtn);
|
||||
this.grpName.Controls.Add(this.NameBox);
|
||||
this.grpName.Location = new System.Drawing.Point(8, 28);
|
||||
this.grpName.Name = "grpName";
|
||||
this.grpName.Size = new System.Drawing.Size(486, 45);
|
||||
this.grpName.TabIndex = 11;
|
||||
this.grpName.TabStop = false;
|
||||
this.grpName.Text = "Name";
|
||||
//
|
||||
// BrowseBtn
|
||||
//
|
||||
this.BrowseBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.BrowseBtn.Location = new System.Drawing.Point(417, 18);
|
||||
this.BrowseBtn.Name = "BrowseBtn";
|
||||
this.BrowseBtn.Size = new System.Drawing.Size(63, 23);
|
||||
this.BrowseBtn.TabIndex = 14;
|
||||
this.BrowseBtn.Text = "Browse...";
|
||||
this.BrowseBtn.UseVisualStyleBackColor = true;
|
||||
this.BrowseBtn.Click += new System.EventHandler(this.BrowseBtn_Click);
|
||||
//
|
||||
// NameBox
|
||||
//
|
||||
this.NameBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
this.grpName.Controls.Add(this.BrowseBtn);
|
||||
this.grpName.Controls.Add(this.NameBox);
|
||||
this.grpName.Location = new System.Drawing.Point(8, 28);
|
||||
this.grpName.Name = "grpName";
|
||||
this.grpName.Size = new System.Drawing.Size(486, 45);
|
||||
this.grpName.TabIndex = 11;
|
||||
this.grpName.TabStop = false;
|
||||
this.grpName.Text = "Name";
|
||||
//
|
||||
// BrowseBtn
|
||||
//
|
||||
this.BrowseBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.BrowseBtn.Location = new System.Drawing.Point(417, 18);
|
||||
this.BrowseBtn.Name = "BrowseBtn";
|
||||
this.BrowseBtn.Size = new System.Drawing.Size(63, 23);
|
||||
this.BrowseBtn.TabIndex = 14;
|
||||
this.BrowseBtn.Text = "Browse...";
|
||||
this.BrowseBtn.UseVisualStyleBackColor = true;
|
||||
this.BrowseBtn.Click += new System.EventHandler(this.BrowseBtn_Click);
|
||||
//
|
||||
// NameBox
|
||||
//
|
||||
this.NameBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.NameBox.Location = new System.Drawing.Point(6, 19);
|
||||
this.NameBox.Name = "NameBox";
|
||||
this.NameBox.Size = new System.Drawing.Size(405, 20);
|
||||
this.NameBox.TabIndex = 0;
|
||||
this.NameBox.TextChanged += new System.EventHandler(this.NameBox_TextChanged);
|
||||
//
|
||||
// FileSelectorPanel
|
||||
//
|
||||
this.FileSelectorPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
this.NameBox.Location = new System.Drawing.Point(6, 19);
|
||||
this.NameBox.Name = "NameBox";
|
||||
this.NameBox.Size = new System.Drawing.Size(405, 20);
|
||||
this.NameBox.TabIndex = 0;
|
||||
this.NameBox.TextChanged += new System.EventHandler(this.NameBox_TextChanged);
|
||||
//
|
||||
// FileSelectorPanel
|
||||
//
|
||||
this.FileSelectorPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.FileSelectorPanel.AutoScroll = true;
|
||||
this.FileSelectorPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.FileSelectorPanel.Location = new System.Drawing.Point(8, 101);
|
||||
this.FileSelectorPanel.Name = "FileSelectorPanel";
|
||||
this.FileSelectorPanel.Size = new System.Drawing.Size(486, 222);
|
||||
this.FileSelectorPanel.TabIndex = 12;
|
||||
//
|
||||
// AddButton
|
||||
//
|
||||
this.AddButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.AddButton.Location = new System.Drawing.Point(8, 329);
|
||||
this.AddButton.Name = "AddButton";
|
||||
this.AddButton.Size = new System.Drawing.Size(60, 23);
|
||||
this.AddButton.TabIndex = 13;
|
||||
this.AddButton.Text = "Add";
|
||||
this.AddButton.UseVisualStyleBackColor = true;
|
||||
this.AddButton.Click += new System.EventHandler(this.AddButton_Click);
|
||||
//
|
||||
// SystemDropDown
|
||||
//
|
||||
this.SystemDropDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.SystemDropDown.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.SystemDropDown.FormattingEnabled = true;
|
||||
this.SystemDropDown.Items.AddRange(new object[] {
|
||||
this.FileSelectorPanel.AutoScroll = true;
|
||||
this.FileSelectorPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.FileSelectorPanel.Location = new System.Drawing.Point(8, 101);
|
||||
this.FileSelectorPanel.Name = "FileSelectorPanel";
|
||||
this.FileSelectorPanel.Size = new System.Drawing.Size(486, 222);
|
||||
this.FileSelectorPanel.TabIndex = 12;
|
||||
//
|
||||
// AddButton
|
||||
//
|
||||
this.AddButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.AddButton.Location = new System.Drawing.Point(8, 329);
|
||||
this.AddButton.Name = "AddButton";
|
||||
this.AddButton.Size = new System.Drawing.Size(60, 23);
|
||||
this.AddButton.TabIndex = 13;
|
||||
this.AddButton.Text = "Add";
|
||||
this.AddButton.UseVisualStyleBackColor = true;
|
||||
this.AddButton.Click += new System.EventHandler(this.AddButton_Click);
|
||||
//
|
||||
// SystemDropDown
|
||||
//
|
||||
this.SystemDropDown.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.SystemDropDown.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.SystemDropDown.FormattingEnabled = true;
|
||||
this.SystemDropDown.Items.AddRange(new object[] {
|
||||
"GB",
|
||||
"AppleII",
|
||||
"PSX"});
|
||||
this.SystemDropDown.Location = new System.Drawing.Point(425, 75);
|
||||
this.SystemDropDown.Name = "SystemDropDown";
|
||||
this.SystemDropDown.Size = new System.Drawing.Size(69, 21);
|
||||
this.SystemDropDown.TabIndex = 14;
|
||||
this.SystemDropDown.SelectedIndexChanged += new System.EventHandler(this.SystemDropDown_SelectedIndexChanged);
|
||||
//
|
||||
// SystemLabel
|
||||
//
|
||||
this.SystemLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.SystemLabel.AutoSize = true;
|
||||
this.SystemLabel.Location = new System.Drawing.Point(375, 78);
|
||||
this.SystemLabel.Name = "SystemLabel";
|
||||
this.SystemLabel.Size = new System.Drawing.Size(44, 13);
|
||||
this.SystemLabel.TabIndex = 15;
|
||||
this.SystemLabel.Text = "System:";
|
||||
//
|
||||
// btnRemove
|
||||
//
|
||||
this.btnRemove.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.btnRemove.Location = new System.Drawing.Point(74, 329);
|
||||
this.btnRemove.Name = "btnRemove";
|
||||
this.btnRemove.Size = new System.Drawing.Size(60, 23);
|
||||
this.btnRemove.TabIndex = 16;
|
||||
this.btnRemove.Text = "Remove";
|
||||
this.btnRemove.UseVisualStyleBackColor = true;
|
||||
this.btnRemove.Click += new System.EventHandler(this.btnRemove_Click);
|
||||
//
|
||||
// MultiDiskBundler
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(506, 364);
|
||||
this.Controls.Add(this.btnRemove);
|
||||
this.Controls.Add(this.SystemLabel);
|
||||
this.Controls.Add(this.SystemDropDown);
|
||||
this.Controls.Add(this.AddButton);
|
||||
this.Controls.Add(this.FileSelectorPanel);
|
||||
this.Controls.Add(this.grpName);
|
||||
this.Controls.Add(this.CancelBtn);
|
||||
this.Controls.Add(this.SaveRunButton);
|
||||
this.Controls.Add(this.MultiDiskMenuStrip);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MainMenuStrip = this.MultiDiskMenuStrip;
|
||||
this.Name = "MultiDiskBundler";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Multi-disk Bundler";
|
||||
this.Load += new System.EventHandler(this.MultiGameCreator_Load);
|
||||
this.grpName.ResumeLayout(false);
|
||||
this.grpName.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
"PSX",
|
||||
"C64"});
|
||||
this.SystemDropDown.Location = new System.Drawing.Point(425, 75);
|
||||
this.SystemDropDown.Name = "SystemDropDown";
|
||||
this.SystemDropDown.Size = new System.Drawing.Size(69, 21);
|
||||
this.SystemDropDown.TabIndex = 14;
|
||||
this.SystemDropDown.SelectedIndexChanged += new System.EventHandler(this.SystemDropDown_SelectedIndexChanged);
|
||||
//
|
||||
// SystemLabel
|
||||
//
|
||||
this.SystemLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.SystemLabel.AutoSize = true;
|
||||
this.SystemLabel.Location = new System.Drawing.Point(375, 78);
|
||||
this.SystemLabel.Name = "SystemLabel";
|
||||
this.SystemLabel.Size = new System.Drawing.Size(44, 13);
|
||||
this.SystemLabel.TabIndex = 15;
|
||||
this.SystemLabel.Text = "System:";
|
||||
//
|
||||
// btnRemove
|
||||
//
|
||||
this.btnRemove.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||
this.btnRemove.Location = new System.Drawing.Point(74, 329);
|
||||
this.btnRemove.Name = "btnRemove";
|
||||
this.btnRemove.Size = new System.Drawing.Size(60, 23);
|
||||
this.btnRemove.TabIndex = 16;
|
||||
this.btnRemove.Text = "Remove";
|
||||
this.btnRemove.UseVisualStyleBackColor = true;
|
||||
this.btnRemove.Click += new System.EventHandler(this.btnRemove_Click);
|
||||
//
|
||||
// MultiDiskBundler
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(506, 364);
|
||||
this.Controls.Add(this.btnRemove);
|
||||
this.Controls.Add(this.SystemLabel);
|
||||
this.Controls.Add(this.SystemDropDown);
|
||||
this.Controls.Add(this.AddButton);
|
||||
this.Controls.Add(this.FileSelectorPanel);
|
||||
this.Controls.Add(this.grpName);
|
||||
this.Controls.Add(this.CancelBtn);
|
||||
this.Controls.Add(this.SaveRunButton);
|
||||
this.Controls.Add(this.MultiDiskMenuStrip);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MainMenuStrip = this.MultiDiskMenuStrip;
|
||||
this.Name = "MultiDiskBundler";
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||
this.Text = "Multi-disk Bundler";
|
||||
this.Load += new System.EventHandler(this.MultiGameCreator_Load);
|
||||
this.grpName.ResumeLayout(false);
|
||||
this.grpName.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue