Input browse & batch buttons start browsing at the current input location

MacLib no longer opens the file for writing when decoding
This commit is contained in:
chudov
2008-10-19 11:20:48 +00:00
parent b00e54f20e
commit f6138ce9cc
13 changed files with 170 additions and 435 deletions

View File

@@ -48,6 +48,7 @@
PreprocessorDefinitions="WIN32;_DEBUG"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
BrowseInformation="1"
WarningLevel="3"
DebugInformationFormat="3"
/>

View File

@@ -49,6 +49,7 @@ namespace JDP {
this.rbAppendFilename = new System.Windows.Forms.RadioButton();
this.txtAppendFilename = new System.Windows.Forms.TextBox();
this.grpAudioOutput = new System.Windows.Forms.GroupBox();
this.rbAPE = new System.Windows.Forms.RadioButton();
this.rbNoAudio = new System.Windows.Forms.RadioButton();
this.rbWavPack = new System.Windows.Forms.RadioButton();
this.rbFLAC = new System.Windows.Forms.RadioButton();
@@ -68,7 +69,6 @@ namespace JDP {
this.toolStripProgressBar2 = new System.Windows.Forms.ToolStripProgressBar();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.btnCUECreator = new System.Windows.Forms.Button();
this.rbAPE = new System.Windows.Forms.RadioButton();
this.grpCUEPaths.SuspendLayout();
this.grpOutputStyle.SuspendLayout();
this.grpOutputPathGeneration.SuspendLayout();
@@ -266,6 +266,14 @@ namespace JDP {
this.grpAudioOutput.Name = "grpAudioOutput";
this.grpAudioOutput.TabStop = false;
//
// rbAPE
//
resources.ApplyResources(this.rbAPE, "rbAPE");
this.rbAPE.Name = "rbAPE";
this.rbAPE.TabStop = true;
this.rbAPE.UseVisualStyleBackColor = true;
this.rbAPE.CheckedChanged += new System.EventHandler(this.rbAPE_CheckedChanged);
//
// rbNoAudio
//
resources.ApplyResources(this.rbNoAudio, "rbNoAudio");
@@ -411,14 +419,6 @@ namespace JDP {
this.btnCUECreator.UseVisualStyleBackColor = true;
this.btnCUECreator.Click += new System.EventHandler(this.btnCUECreator_Click);
//
// rbAPE
//
resources.ApplyResources(this.rbAPE, "rbAPE");
this.rbAPE.Name = "rbAPE";
this.rbAPE.TabStop = true;
this.rbAPE.UseVisualStyleBackColor = true;
this.rbAPE.CheckedChanged += new System.EventHandler(this.rbAPE_CheckedChanged);
//
// frmCUETools
//
resources.ApplyResources(this, "$this");

View File

@@ -48,6 +48,12 @@ namespace JDP {
fileDlg.Title = "Input CUE Sheet or album image";
fileDlg.Filter = "CUE Sheets (*.cue)|*.cue|FLAC images (*.flac)|*.flac|WavPack images (*.wv)|*.wv|APE images (*.ape)|*.ape";
try
{
if (Directory.Exists (Path.GetDirectoryName (txtInputPath.Text)))
fileDlg.InitialDirectory = Path.GetDirectoryName (txtInputPath.Text);
}
catch { }
dlgRes = fileDlg.ShowDialog();
if (dlgRes == DialogResult.OK) {
txtInputPath.Text = fileDlg.FileName;
@@ -86,6 +92,12 @@ namespace JDP {
FolderBrowserDialog folderDialog = new FolderBrowserDialog();
folderDialog.Description = "Select the folder containing the CUE sheets you want to convert. Subfolders will be included automatically.";
folderDialog.ShowNewFolderButton = false;
try
{
if (Directory.Exists(Path.GetDirectoryName(txtInputPath.Text)))
folderDialog.SelectedPath = Path.GetDirectoryName(txtInputPath.Text);
}
catch { }
if (folderDialog.ShowDialog() == DialogResult.OK) {
if (!CheckWriteOffset()) return;
AddDirToBatch(folderDialog.SelectedPath);

View File

@@ -143,102 +143,6 @@
<data name="&gt;&gt;btnConvert.ZOrder" xml:space="preserve">
<value>11</value>
</data>
<data name="&gt;&gt;btnBrowseOutput.Name" xml:space="preserve">
<value>btnBrowseOutput</value>
</data>
<data name="&gt;&gt;btnBrowseOutput.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;btnBrowseOutput.Parent" xml:space="preserve">
<value>grpCUEPaths</value>
</data>
<data name="&gt;&gt;btnBrowseOutput.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="&gt;&gt;btnBrowseInput.Name" xml:space="preserve">
<value>btnBrowseInput</value>
</data>
<data name="&gt;&gt;btnBrowseInput.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;btnBrowseInput.Parent" xml:space="preserve">
<value>grpCUEPaths</value>
</data>
<data name="&gt;&gt;btnBrowseInput.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="&gt;&gt;lblOutput.Name" xml:space="preserve">
<value>lblOutput</value>
</data>
<data name="&gt;&gt;lblOutput.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;lblOutput.Parent" xml:space="preserve">
<value>grpCUEPaths</value>
</data>
<data name="&gt;&gt;lblOutput.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="&gt;&gt;lblInput.Name" xml:space="preserve">
<value>lblInput</value>
</data>
<data name="&gt;&gt;lblInput.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;lblInput.Parent" xml:space="preserve">
<value>grpCUEPaths</value>
</data>
<data name="&gt;&gt;lblInput.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="&gt;&gt;txtOutputPath.Name" xml:space="preserve">
<value>txtOutputPath</value>
</data>
<data name="&gt;&gt;txtOutputPath.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;txtOutputPath.Parent" xml:space="preserve">
<value>grpCUEPaths</value>
</data>
<data name="&gt;&gt;txtOutputPath.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="&gt;&gt;txtInputPath.Name" xml:space="preserve">
<value>txtInputPath</value>
</data>
<data name="&gt;&gt;txtInputPath.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;txtInputPath.Parent" xml:space="preserve">
<value>grpCUEPaths</value>
</data>
<data name="&gt;&gt;txtInputPath.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="grpCUEPaths.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 2</value>
</data>
<data name="grpCUEPaths.Size" type="System.Drawing.Size, System.Drawing">
<value>534, 84</value>
</data>
<data name="grpCUEPaths.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="grpCUEPaths.Text" xml:space="preserve">
<value>CUE Paths</value>
</data>
<data name="&gt;&gt;grpCUEPaths.Name" xml:space="preserve">
<value>grpCUEPaths</value>
</data>
<data name="&gt;&gt;grpCUEPaths.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;grpCUEPaths.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;grpCUEPaths.ZOrder" xml:space="preserve">
<value>10</value>
</data>
<data name="btnBrowseOutput.Location" type="System.Drawing.Point, System.Drawing">
<value>461, 49</value>
</data>
@@ -342,10 +246,10 @@
<value>3</value>
</data>
<data name="txtOutputPath.Location" type="System.Drawing.Point, System.Drawing">
<value>51, 48</value>
<value>59, 48</value>
</data>
<data name="txtOutputPath.Size" type="System.Drawing.Size, System.Drawing">
<value>404, 21</value>
<value>396, 21</value>
</data>
<data name="txtOutputPath.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
@@ -363,10 +267,10 @@
<value>4</value>
</data>
<data name="txtInputPath.Location" type="System.Drawing.Point, System.Drawing">
<value>51, 22</value>
<value>59, 22</value>
</data>
<data name="txtInputPath.Size" type="System.Drawing.Size, System.Drawing">
<value>404, 21</value>
<value>396, 21</value>
</data>
<data name="txtInputPath.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
@@ -383,6 +287,30 @@
<data name="&gt;&gt;txtInputPath.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="grpCUEPaths.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 2</value>
</data>
<data name="grpCUEPaths.Size" type="System.Drawing.Size, System.Drawing">
<value>534, 84</value>
</data>
<data name="grpCUEPaths.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="grpCUEPaths.Text" xml:space="preserve">
<value>CUE Paths</value>
</data>
<data name="&gt;&gt;grpCUEPaths.Name" xml:space="preserve">
<value>grpCUEPaths</value>
</data>
<data name="&gt;&gt;grpCUEPaths.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;grpCUEPaths.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;grpCUEPaths.ZOrder" xml:space="preserve">
<value>10</value>
</data>
<data name="rbEmbedCUE.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
@@ -588,114 +516,6 @@
<data name="&gt;&gt;btnAbout.ZOrder" xml:space="preserve">
<value>8</value>
</data>
<data name="&gt;&gt;txtCustomFormat.Name" xml:space="preserve">
<value>txtCustomFormat</value>
</data>
<data name="&gt;&gt;txtCustomFormat.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;txtCustomFormat.Parent" xml:space="preserve">
<value>grpOutputPathGeneration</value>
</data>
<data name="&gt;&gt;txtCustomFormat.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="&gt;&gt;rbCustomFormat.Name" xml:space="preserve">
<value>rbCustomFormat</value>
</data>
<data name="&gt;&gt;rbCustomFormat.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbCustomFormat.Parent" xml:space="preserve">
<value>grpOutputPathGeneration</value>
</data>
<data name="&gt;&gt;rbCustomFormat.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="&gt;&gt;txtCreateSubdirectory.Name" xml:space="preserve">
<value>txtCreateSubdirectory</value>
</data>
<data name="&gt;&gt;txtCreateSubdirectory.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;txtCreateSubdirectory.Parent" xml:space="preserve">
<value>grpOutputPathGeneration</value>
</data>
<data name="&gt;&gt;txtCreateSubdirectory.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="&gt;&gt;rbDontGenerate.Name" xml:space="preserve">
<value>rbDontGenerate</value>
</data>
<data name="&gt;&gt;rbDontGenerate.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbDontGenerate.Parent" xml:space="preserve">
<value>grpOutputPathGeneration</value>
</data>
<data name="&gt;&gt;rbDontGenerate.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="&gt;&gt;rbCreateSubdirectory.Name" xml:space="preserve">
<value>rbCreateSubdirectory</value>
</data>
<data name="&gt;&gt;rbCreateSubdirectory.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbCreateSubdirectory.Parent" xml:space="preserve">
<value>grpOutputPathGeneration</value>
</data>
<data name="&gt;&gt;rbCreateSubdirectory.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="&gt;&gt;rbAppendFilename.Name" xml:space="preserve">
<value>rbAppendFilename</value>
</data>
<data name="&gt;&gt;rbAppendFilename.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbAppendFilename.Parent" xml:space="preserve">
<value>grpOutputPathGeneration</value>
</data>
<data name="&gt;&gt;rbAppendFilename.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="&gt;&gt;txtAppendFilename.Name" xml:space="preserve">
<value>txtAppendFilename</value>
</data>
<data name="&gt;&gt;txtAppendFilename.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;txtAppendFilename.Parent" xml:space="preserve">
<value>grpOutputPathGeneration</value>
</data>
<data name="&gt;&gt;txtAppendFilename.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="grpOutputPathGeneration.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 92</value>
</data>
<data name="grpOutputPathGeneration.Size" type="System.Drawing.Size, System.Drawing">
<value>328, 113</value>
</data>
<data name="grpOutputPathGeneration.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="grpOutputPathGeneration.Text" xml:space="preserve">
<value>Output Path</value>
</data>
<data name="&gt;&gt;grpOutputPathGeneration.Name" xml:space="preserve">
<value>grpOutputPathGeneration</value>
</data>
<data name="&gt;&gt;grpOutputPathGeneration.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;grpOutputPathGeneration.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;grpOutputPathGeneration.ZOrder" xml:space="preserve">
<value>7</value>
</data>
<data name="txtCustomFormat.Location" type="System.Drawing.Point, System.Drawing">
<value>144, 62</value>
</data>
@@ -876,6 +696,45 @@
<data name="&gt;&gt;txtAppendFilename.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="grpOutputPathGeneration.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 92</value>
</data>
<data name="grpOutputPathGeneration.Size" type="System.Drawing.Size, System.Drawing">
<value>328, 113</value>
</data>
<data name="grpOutputPathGeneration.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="grpOutputPathGeneration.Text" xml:space="preserve">
<value>Output Path</value>
</data>
<data name="&gt;&gt;grpOutputPathGeneration.Name" xml:space="preserve">
<value>grpOutputPathGeneration</value>
</data>
<data name="&gt;&gt;grpOutputPathGeneration.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;grpOutputPathGeneration.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;grpOutputPathGeneration.ZOrder" xml:space="preserve">
<value>7</value>
</data>
<data name="rbAPE.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="rbAPE.Location" type="System.Drawing.Point, System.Drawing">
<value>11, 51</value>
</data>
<data name="rbAPE.Size" type="System.Drawing.Size, System.Drawing">
<value>44, 17</value>
</data>
<data name="rbAPE.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
</data>
<data name="rbAPE.Text" xml:space="preserve">
<value>APE</value>
</data>
<data name="&gt;&gt;rbAPE.Name" xml:space="preserve">
<value>rbAPE</value>
</data>
@@ -888,78 +747,6 @@
<data name="&gt;&gt;rbAPE.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="&gt;&gt;rbNoAudio.Name" xml:space="preserve">
<value>rbNoAudio</value>
</data>
<data name="&gt;&gt;rbNoAudio.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbNoAudio.Parent" xml:space="preserve">
<value>grpAudioOutput</value>
</data>
<data name="&gt;&gt;rbNoAudio.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="&gt;&gt;rbWavPack.Name" xml:space="preserve">
<value>rbWavPack</value>
</data>
<data name="&gt;&gt;rbWavPack.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbWavPack.Parent" xml:space="preserve">
<value>grpAudioOutput</value>
</data>
<data name="&gt;&gt;rbWavPack.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="&gt;&gt;rbFLAC.Name" xml:space="preserve">
<value>rbFLAC</value>
</data>
<data name="&gt;&gt;rbFLAC.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbFLAC.Parent" xml:space="preserve">
<value>grpAudioOutput</value>
</data>
<data name="&gt;&gt;rbFLAC.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="&gt;&gt;rbWAV.Name" xml:space="preserve">
<value>rbWAV</value>
</data>
<data name="&gt;&gt;rbWAV.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbWAV.Parent" xml:space="preserve">
<value>grpAudioOutput</value>
</data>
<data name="&gt;&gt;rbWAV.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="grpAudioOutput.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 211</value>
</data>
<data name="grpAudioOutput.Size" type="System.Drawing.Size, System.Drawing">
<value>96, 118</value>
</data>
<data name="grpAudioOutput.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="grpAudioOutput.Text" xml:space="preserve">
<value>Audio Output</value>
</data>
<data name="&gt;&gt;grpAudioOutput.Name" xml:space="preserve">
<value>grpAudioOutput</value>
</data>
<data name="&gt;&gt;grpAudioOutput.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;grpAudioOutput.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;grpAudioOutput.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="rbNoAudio.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
@@ -1071,6 +858,30 @@
<data name="&gt;&gt;rbWAV.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="grpAudioOutput.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 211</value>
</data>
<data name="grpAudioOutput.Size" type="System.Drawing.Size, System.Drawing">
<value>96, 118</value>
</data>
<data name="grpAudioOutput.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="grpAudioOutput.Text" xml:space="preserve">
<value>Audio Output</value>
</data>
<data name="&gt;&gt;grpAudioOutput.Name" xml:space="preserve">
<value>grpAudioOutput</value>
</data>
<data name="&gt;&gt;grpAudioOutput.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;grpAudioOutput.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;grpAudioOutput.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="btnBatch.Location" type="System.Drawing.Point, System.Drawing">
<value>410, 259</value>
</data>
@@ -1143,90 +954,6 @@
<data name="&gt;&gt;btnSettings.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="&gt;&gt;label1.Name" xml:space="preserve">
<value>label1</value>
</data>
<data name="&gt;&gt;label1.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label1.Parent" xml:space="preserve">
<value>grpAccurateRip</value>
</data>
<data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="&gt;&gt;txtDataTrackLength.Name" xml:space="preserve">
<value>txtDataTrackLength</value>
</data>
<data name="&gt;&gt;txtDataTrackLength.Type" xml:space="preserve">
<value>System.Windows.Forms.MaskedTextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;txtDataTrackLength.Parent" xml:space="preserve">
<value>grpAccurateRip</value>
</data>
<data name="&gt;&gt;txtDataTrackLength.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="&gt;&gt;rbArApplyOffset.Name" xml:space="preserve">
<value>rbArApplyOffset</value>
</data>
<data name="&gt;&gt;rbArApplyOffset.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbArApplyOffset.Parent" xml:space="preserve">
<value>grpAccurateRip</value>
</data>
<data name="&gt;&gt;rbArApplyOffset.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="&gt;&gt;rbArVerify.Name" xml:space="preserve">
<value>rbArVerify</value>
</data>
<data name="&gt;&gt;rbArVerify.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbArVerify.Parent" xml:space="preserve">
<value>grpAccurateRip</value>
</data>
<data name="&gt;&gt;rbArVerify.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="&gt;&gt;rbArNone.Name" xml:space="preserve">
<value>rbArNone</value>
</data>
<data name="&gt;&gt;rbArNone.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbArNone.Parent" xml:space="preserve">
<value>grpAccurateRip</value>
</data>
<data name="&gt;&gt;rbArNone.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="grpAccurateRip.Location" type="System.Drawing.Point, System.Drawing">
<value>238, 211</value>
</data>
<data name="grpAccurateRip.Size" type="System.Drawing.Size, System.Drawing">
<value>144, 118</value>
</data>
<data name="grpAccurateRip.TabIndex" type="System.Int32, mscorlib">
<value>11</value>
</data>
<data name="grpAccurateRip.Text" xml:space="preserve">
<value>AccurateRip</value>
</data>
<data name="&gt;&gt;grpAccurateRip.Name" xml:space="preserve">
<value>grpAccurateRip</value>
</data>
<data name="&gt;&gt;grpAccurateRip.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;grpAccurateRip.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;grpAccurateRip.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
@@ -1374,9 +1101,51 @@
<data name="&gt;&gt;rbArNone.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="grpAccurateRip.Location" type="System.Drawing.Point, System.Drawing">
<value>238, 211</value>
</data>
<data name="grpAccurateRip.Size" type="System.Drawing.Size, System.Drawing">
<value>144, 118</value>
</data>
<data name="grpAccurateRip.TabIndex" type="System.Int32, mscorlib">
<value>11</value>
</data>
<data name="grpAccurateRip.Text" xml:space="preserve">
<value>AccurateRip</value>
</data>
<data name="&gt;&gt;grpAccurateRip.Name" xml:space="preserve">
<value>grpAccurateRip</value>
</data>
<data name="&gt;&gt;grpAccurateRip.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;grpAccurateRip.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;grpAccurateRip.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<metadata name="statusStrip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>0, 339</value>
</metadata>
<data name="toolStripStatusLabel1.Size" type="System.Drawing.Size, System.Drawing">
<value>254, 17</value>
</data>
<data name="toolStripStatusLabel1.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleLeft</value>
</data>
<data name="toolStripProgressBar1.Size" type="System.Drawing.Size, System.Drawing">
<value>140, 16</value>
</data>
<data name="toolStripProgressBar1.ToolTipText" xml:space="preserve">
<value>Track progress</value>
</data>
<data name="toolStripProgressBar2.Size" type="System.Drawing.Size, System.Drawing">
<value>140, 16</value>
</data>
<data name="toolStripProgressBar2.ToolTipText" xml:space="preserve">
<value>Disk progress</value>
</data>
<data name="statusStrip1.Location" type="System.Drawing.Point, System.Drawing">
<value>0, 339</value>
</data>
@@ -1401,24 +1170,6 @@
<data name="&gt;&gt;statusStrip1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="toolStripStatusLabel1.Size" type="System.Drawing.Size, System.Drawing">
<value>254, 17</value>
</data>
<data name="toolStripStatusLabel1.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing">
<value>MiddleLeft</value>
</data>
<data name="toolStripProgressBar1.Size" type="System.Drawing.Size, System.Drawing">
<value>140, 16</value>
</data>
<data name="toolStripProgressBar1.ToolTipText" xml:space="preserve">
<value>Track progress</value>
</data>
<data name="toolStripProgressBar2.Size" type="System.Drawing.Size, System.Drawing">
<value>140, 16</value>
</data>
<data name="toolStripProgressBar2.ToolTipText" xml:space="preserve">
<value>Disk progress</value>
</data>
<data name="btnCUECreator.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
@@ -1446,33 +1197,6 @@
<data name="&gt;&gt;btnCUECreator.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="rbAPE.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="rbAPE.Location" type="System.Drawing.Point, System.Drawing">
<value>11, 51</value>
</data>
<data name="rbAPE.Size" type="System.Drawing.Size, System.Drawing">
<value>44, 17</value>
</data>
<data name="rbAPE.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
</data>
<data name="rbAPE.Text" xml:space="preserve">
<value>APE</value>
</data>
<data name="&gt;&gt;rbAPE.Name" xml:space="preserve">
<value>rbAPE</value>
</data>
<data name="&gt;&gt;rbAPE.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;rbAPE.Parent" xml:space="preserve">
<value>grpAudioOutput</value>
</data>
<data name="&gt;&gt;rbAPE.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>

View File

@@ -221,18 +221,18 @@ namespace CUEToolsLib
public CUEConfig()
{
fixWhenConfidence = 1;
fixWhenConfidence = 2;
fixWhenPercent = 51;
encodeWhenConfidence = 1;
encodeWhenConfidence = 2;
encodeWhenPercent = 100;
fixOffset = true;
fixOffset = false;
noUnverifiedOutput = false;
writeArTags = true;
writeArLog = true;
autoCorrectFilenames = true;
flacVerify = false;
flacCompressionLevel = 5;
flacCompressionLevel = 8;
preserveHTOA = false;
wvCompressionMode = 1;
wvExtraMode = 0;

View File

@@ -11,7 +11,7 @@ CAPEInfo:
/*****************************************************************************************
Construction
*****************************************************************************************/
CAPEInfo::CAPEInfo(int * pErrorCode, const wchar_t * pFilename, CAPETag * pTag)
CAPEInfo::CAPEInfo(int * pErrorCode, const wchar_t * pFilename, CAPETag * pTag, bool fReadOnly)
{
*pErrorCode = ERROR_SUCCESS;
CloseFile();
@@ -19,7 +19,7 @@ CAPEInfo::CAPEInfo(int * pErrorCode, const wchar_t * pFilename, CAPETag * pTag)
// open the file
m_spIO.Assign(new IO_CLASS_NAME);
if (m_spIO->Open(pFilename) != 0)
if (m_spIO->Open(pFilename, fReadOnly) != 0)
{
CloseFile();
*pErrorCode = ERROR_INVALID_INPUT_FILE;

View File

@@ -77,7 +77,7 @@ class CAPEInfo
public:
// construction and destruction
CAPEInfo(int * pErrorCode, const wchar_t * pFilename, CAPETag * pTag = NULL);
CAPEInfo(int * pErrorCode, const wchar_t * pFilename, CAPETag * pTag = NULL, bool fReadOnly = 0);
CAPEInfo(int * pErrorCode, CIO * pIO, CAPETag * pTag = NULL);
virtual ~CAPEInfo();

View File

@@ -75,7 +75,7 @@ IAPEDecompress * __stdcall CreateIAPEDecompress(const str_utf16 * pFilename, int
else if ((wcsicmp(pExtension, L".mac") == 0) || (wcsicmp(pExtension, L".ape") == 0))
{
// plain .ape file
pAPEInfo = new CAPEInfo(&nErrorCode, pFilename);
pAPEInfo = new CAPEInfo(&nErrorCode, pFilename, NULL, 1);
}
// fail if we couldn't get the file information

View File

@@ -49,10 +49,10 @@
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;UNICODE"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
PrecompiledHeaderFile=".\Debug/MACLib.pch"
AssemblerListingLocation=".\Debug/"
ObjectFile=".\Debug/"
ProgramDataBaseFileName=".\Debug/"
BrowseInformation="1"
WarningLevel="3"
SuppressStartupBanner="true"
DebugInformationFormat="4"
@@ -139,7 +139,6 @@
/>
<Tool
Name="VCPreLinkEventTool"
Description=""
CommandLine=""
/>
<Tool
@@ -198,7 +197,6 @@
RuntimeLibrary="2"
UsePrecompiledHeader="0"
PrecompiledHeaderThrough="all.h"
PrecompiledHeaderFile=".\Release/MACLib.pch"
AssemblerListingLocation=".\Release/"
ObjectFile=".\Release/"
ProgramDataBaseFileName=".\Release/"
@@ -277,7 +275,6 @@
RuntimeLibrary="2"
UsePrecompiledHeader="0"
PrecompiledHeaderThrough="all.h"
PrecompiledHeaderFile=".\x64\Release/MACLib.pch"
AssemblerListingLocation=".\x64\Release/"
ObjectFile=".\x64\Release/"
ProgramDataBaseFileName=".\x64\Release/"
@@ -296,7 +293,6 @@
/>
<Tool
Name="VCPreLinkEventTool"
Description=""
CommandLine=""
/>
<Tool

View File

@@ -23,7 +23,7 @@ public:
virtual ~CIO() { };
// open / close
virtual int Open(const wchar_t * pName) = 0;
virtual int Open(const wchar_t * pName, int fReadonly = 0) = 0;
virtual int Close() = 0;
// read / write

View File

@@ -18,7 +18,7 @@ CWinFileIO::~CWinFileIO()
Close();
}
int CWinFileIO::Open(const wchar_t * pName)
int CWinFileIO::Open(const wchar_t * pName, int fReadonly)
{
Close();
@@ -28,6 +28,8 @@ int CWinFileIO::Open(const wchar_t * pName)
CSmartPtr<char> spName(GetANSIFromUTF16(pName), TRUE);
#endif
m_hFile = INVALID_HANDLE_VALUE;
if (!fReadonly)
m_hFile = ::CreateFile(spName, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
if (m_hFile == INVALID_HANDLE_VALUE)
{

View File

@@ -14,7 +14,7 @@ public:
~CWinFileIO();
// open / close
int Open(const wchar_t * pName);
int Open(const wchar_t * pName, int fReadonly = 0);
int Close();
// read / write