diff --git a/DiscoHawk/About.Designer.cs b/DiscoHawk/About.Designer.cs new file mode 100644 index 0000000000..7a99b7f16c --- /dev/null +++ b/DiscoHawk/About.Designer.cs @@ -0,0 +1,79 @@ +namespace BizHawk +{ + partial class About + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(About)); + this.richTextBox1 = new System.Windows.Forms.RichTextBox(); + this.button1 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // richTextBox1 + // + this.richTextBox1.Location = new System.Drawing.Point(12, 12); + this.richTextBox1.Name = "richTextBox1"; + this.richTextBox1.ReadOnly = true; + this.richTextBox1.Size = new System.Drawing.Size(499, 272); + this.richTextBox1.TabIndex = 1; + this.richTextBox1.Text = resources.GetString("richTextBox1.Text"); + this.richTextBox1.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.richTextBox1_LinkClicked); + // + // button1 + // + this.button1.DialogResult = System.Windows.Forms.DialogResult.Cancel; + this.button1.Location = new System.Drawing.Point(436, 290); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 2; + this.button1.Text = "OK"; + this.button1.UseVisualStyleBackColor = true; + // + // About + // + this.AcceptButton = this.button1; + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.CancelButton = this.button1; + this.ClientSize = new System.Drawing.Size(525, 323); + this.ControlBox = false; + this.Controls.Add(this.button1); + this.Controls.Add(this.richTextBox1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MinimizeBox = false; + this.Name = "About"; + this.Text = "About DiscoHawk"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.RichTextBox richTextBox1; + private System.Windows.Forms.Button button1; + } +} \ No newline at end of file diff --git a/DiscoHawk/About.cs b/DiscoHawk/About.cs new file mode 100644 index 0000000000..6025f6d4b4 --- /dev/null +++ b/DiscoHawk/About.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace BizHawk +{ + public partial class About : Form + { + public About() + { + InitializeComponent(); + } + + private void richTextBox1_LinkClicked(object sender, LinkClickedEventArgs e) + { + System.Diagnostics.Process.Start(e.LinkText); + } + } +} diff --git a/DiscoHawk/About.resx b/DiscoHawk/About.resx new file mode 100644 index 0000000000..03ea4eceea --- /dev/null +++ b/DiscoHawk/About.resx @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + DiscoHawk converts bolloxed-up crusty disc images to totally tidy cue+bin. + +DiscoHawk is part of the BizHawk project ( http://code.google.com/p/bizhawk ). + +BizHawk is a .net-based multi-system emulator brought to you by some of the rerecording emulator principals. We wrote our own cue parsing/generating code to be able to handle any kind of junk we threw at it. Instead of trapping it in the emulator, we liberated it in the form of this tool, to be useful in other environments. + +To use, drag a .cue into the MAGIC area. DiscoHawk will dump a newly cleaned up cue+bin pair to the same directory as the original .cue, and call it _hawked. + +This is beta software. You are invited to report problems to our bug tracker or IRC. Problems consist of: crusty disc images that crash DiscoHawk or that cause DiscoHawk to produce a _hawked.cue which fails to serve your particular purposes (which we will need to be informed of, in case we are outputting wrongly.) + + + \ No newline at end of file diff --git a/DiscoHawk/DiscoHawk.csproj b/DiscoHawk/DiscoHawk.csproj index a778f40b08..7f0404d225 100644 --- a/DiscoHawk/DiscoHawk.csproj +++ b/DiscoHawk/DiscoHawk.csproj @@ -74,6 +74,12 @@ --> + + Form + + + About.cs + @@ -106,6 +112,9 @@ + + About.cs + DiscoHawkDialog.cs diff --git a/DiscoHawk/MainDiscoForm.Designer.cs b/DiscoHawk/MainDiscoForm.Designer.cs index 3719b6f697..cbab79ec51 100644 --- a/DiscoHawk/MainDiscoForm.Designer.cs +++ b/DiscoHawk/MainDiscoForm.Designer.cs @@ -34,14 +34,14 @@ this.label1 = new System.Windows.Forms.Label(); this.lblMp3ExtractMagicArea = new System.Windows.Forms.Panel(); this.label2 = new System.Windows.Forms.Label(); + this.btnAbout = new System.Windows.Forms.Button(); this.lblMagicDragArea.SuspendLayout(); this.lblMp3ExtractMagicArea.SuspendLayout(); this.SuspendLayout(); // // ExitButton // - this.ExitButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); - this.ExitButton.Location = new System.Drawing.Point(281, 316); + this.ExitButton.Location = new System.Drawing.Point(146, 245); this.ExitButton.Name = "ExitButton"; this.ExitButton.Size = new System.Drawing.Size(75, 23); this.ExitButton.TabIndex = 0; @@ -54,7 +54,7 @@ this.lblMagicDragArea.AllowDrop = true; this.lblMagicDragArea.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.lblMagicDragArea.Controls.Add(this.label1); - this.lblMagicDragArea.Location = new System.Drawing.Point(84, 12); + this.lblMagicDragArea.Location = new System.Drawing.Point(21, 12); this.lblMagicDragArea.Name = "lblMagicDragArea"; this.lblMagicDragArea.Size = new System.Drawing.Size(200, 100); this.lblMagicDragArea.TabIndex = 1; @@ -75,7 +75,7 @@ this.lblMp3ExtractMagicArea.AllowDrop = true; this.lblMp3ExtractMagicArea.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D; this.lblMp3ExtractMagicArea.Controls.Add(this.label2); - this.lblMp3ExtractMagicArea.Location = new System.Drawing.Point(84, 167); + this.lblMp3ExtractMagicArea.Location = new System.Drawing.Point(21, 127); this.lblMp3ExtractMagicArea.Name = "lblMp3ExtractMagicArea"; this.lblMp3ExtractMagicArea.Size = new System.Drawing.Size(200, 100); this.lblMp3ExtractMagicArea.TabIndex = 2; @@ -91,15 +91,29 @@ this.label2.TabIndex = 0; this.label2.Text = "Drag cue here to extract audio\ntracks to MP3 for listening\npleasure!"; // + // btnAbout + // + this.btnAbout.Location = new System.Drawing.Point(21, 245); + this.btnAbout.Name = "btnAbout"; + this.btnAbout.Size = new System.Drawing.Size(75, 23); + this.btnAbout.TabIndex = 3; + this.btnAbout.Text = "&About"; + this.btnAbout.UseVisualStyleBackColor = true; + this.btnAbout.Click += new System.EventHandler(this.btnAbout_Click); + // // MainDiscoForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(368, 351); + this.ClientSize = new System.Drawing.Size(247, 285); + this.Controls.Add(this.btnAbout); this.Controls.Add(this.lblMp3ExtractMagicArea); this.Controls.Add(this.lblMagicDragArea); this.Controls.Add(this.ExitButton); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MaximizeBox = false; + this.MinimizeBox = false; this.Name = "MainDiscoForm"; this.Text = "DiscoHawk"; this.Load += new System.EventHandler(this.MainDiscoForm_Load); @@ -118,5 +132,6 @@ private System.Windows.Forms.Label label1; private System.Windows.Forms.Panel lblMp3ExtractMagicArea; private System.Windows.Forms.Label label2; + private System.Windows.Forms.Button btnAbout; } } \ No newline at end of file diff --git a/DiscoHawk/MainDiscoForm.cs b/DiscoHawk/MainDiscoForm.cs index cc3a5009b2..94563d53b9 100644 --- a/DiscoHawk/MainDiscoForm.cs +++ b/DiscoHawk/MainDiscoForm.cs @@ -139,5 +139,10 @@ namespace BizHawk } } } + + private void btnAbout_Click(object sender, EventArgs e) + { + new About().ShowDialog(); + } } }