Removed "ignore ticket" as it really had no purpose...

This commit is contained in:
givememystuffplease 2010-07-05 00:59:08 +00:00
parent f5fd8adcbb
commit 8d98f6db4d
6 changed files with 120 additions and 131 deletions

View File

@ -33,11 +33,9 @@
this.Extrasbtn = new System.Windows.Forms.Button(); this.Extrasbtn = new System.Windows.Forms.Button();
this.downloadstartbtn = new System.Windows.Forms.Button(); this.downloadstartbtn = new System.Windows.Forms.Button();
this.statusbox = new System.Windows.Forms.TextBox(); this.statusbox = new System.Windows.Forms.TextBox();
this.localuse = new System.Windows.Forms.CheckBox();
this.NUSDownloader = new System.ComponentModel.BackgroundWorker(); this.NUSDownloader = new System.ComponentModel.BackgroundWorker();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.wadnamebox = new System.Windows.Forms.TextBox(); this.wadnamebox = new System.Windows.Forms.TextBox();
this.ignoreticket = new System.Windows.Forms.CheckBox();
this.databaseButton = new System.Windows.Forms.Button(); this.databaseButton = new System.Windows.Forms.Button();
this.databaseStrip = new System.Windows.Forms.ContextMenuStrip(this.components); this.databaseStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
this.SystemMenuList = new System.Windows.Forms.ToolStripMenuItem(); this.SystemMenuList = new System.Windows.Forms.ToolStripMenuItem();
@ -79,15 +77,13 @@
this.scriptsbutton = new System.Windows.Forms.Button(); this.scriptsbutton = new System.Windows.Forms.Button();
this.scriptsStrip = new System.Windows.Forms.ContextMenuStrip(this.components); this.scriptsStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.titleversion = new wmgCMS.WaterMarkTextBox(); this.saveaswadbtn = new System.Windows.Forms.Button();
this.titleidbox = new wmgCMS.WaterMarkTextBox();
this.dlprogress = new wyDay.Controls.Windows7ProgressBar();
this.ProxyAssistBtn = new System.Windows.Forms.Button(); this.ProxyAssistBtn = new System.Windows.Forms.Button();
this.keepenccontents = new System.Windows.Forms.CheckBox(); this.keepenccontents = new System.Windows.Forms.CheckBox();
this.button3 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button();
this.packbox = new System.Windows.Forms.CheckBox(); this.packbox = new System.Windows.Forms.CheckBox();
this.decryptbox = new System.Windows.Forms.CheckBox(); this.decryptbox = new System.Windows.Forms.CheckBox();
this.saveaswadbox = new System.Windows.Forms.CheckBox(); this.localuse = new System.Windows.Forms.CheckBox();
this.updateDatabaseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.updateDatabaseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.loadInfoFromTMDToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.loadInfoFromTMDToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.proxySettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.proxySettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -106,6 +102,9 @@
this.europePALToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.europePALToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.japanNTSCJToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.japanNTSCJToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.koreaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.koreaToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.titleversion = new wmgCMS.WaterMarkTextBox();
this.titleidbox = new wmgCMS.WaterMarkTextBox();
this.dlprogress = new wyDay.Controls.Windows7ProgressBar();
this.databaseStrip.SuspendLayout(); this.databaseStrip.SuspendLayout();
this.extrasStrip.SuspendLayout(); this.extrasStrip.SuspendLayout();
this.proxyBox.SuspendLayout(); this.proxyBox.SuspendLayout();
@ -145,19 +144,6 @@
this.statusbox.Size = new System.Drawing.Size(250, 268); this.statusbox.Size = new System.Drawing.Size(250, 268);
this.statusbox.TabIndex = 5; this.statusbox.TabIndex = 5;
// //
// localuse
//
this.localuse.AutoSize = true;
this.localuse.Checked = true;
this.localuse.CheckState = System.Windows.Forms.CheckState.Checked;
this.localuse.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.localuse.Location = new System.Drawing.Point(186, 391);
this.localuse.Name = "localuse";
this.localuse.Size = new System.Drawing.Size(76, 17);
this.localuse.TabIndex = 8;
this.localuse.Text = "Local Files";
this.localuse.UseVisualStyleBackColor = true;
//
// NUSDownloader // NUSDownloader
// //
this.NUSDownloader.DoWork += new System.ComponentModel.DoWorkEventHandler(this.NUSDownloader_DoWork); this.NUSDownloader.DoWork += new System.ComponentModel.DoWorkEventHandler(this.NUSDownloader_DoWork);
@ -183,16 +169,6 @@
this.wadnamebox.Size = new System.Drawing.Size(146, 18); this.wadnamebox.Size = new System.Drawing.Size(146, 18);
this.wadnamebox.TabIndex = 17; this.wadnamebox.TabIndex = 17;
// //
// ignoreticket
//
this.ignoreticket.AutoSize = true;
this.ignoreticket.Location = new System.Drawing.Point(76, 391);
this.ignoreticket.Name = "ignoreticket";
this.ignoreticket.Size = new System.Drawing.Size(89, 17);
this.ignoreticket.TabIndex = 18;
this.ignoreticket.Text = "Ignore Ticket";
this.ignoreticket.UseVisualStyleBackColor = true;
//
// databaseButton // databaseButton
// //
this.databaseButton.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.databaseButton.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
@ -550,39 +526,19 @@
this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(216, 6); this.toolStripSeparator2.Size = new System.Drawing.Size(216, 6);
// //
// titleversion // saveaswadbtn
// //
this.titleversion.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.saveaswadbtn.BackColor = System.Drawing.Color.Transparent;
this.titleversion.Location = new System.Drawing.Point(204, 38); this.saveaswadbtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.titleversion.MaxLength = 8; this.saveaswadbtn.Image = global::NUS_Downloader.Properties.Resources.disk;
this.titleversion.Name = "titleversion"; this.saveaswadbtn.Location = new System.Drawing.Point(230, 433);
this.titleversion.Size = new System.Drawing.Size(58, 20); this.saveaswadbtn.Name = "saveaswadbtn";
this.titleversion.TabIndex = 50; this.saveaswadbtn.Size = new System.Drawing.Size(32, 22);
this.titleversion.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; this.saveaswadbtn.TabIndex = 53;
this.titleversion.WaterMarkColor = System.Drawing.Color.Silver; this.saveaswadbtn.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.titleversion.WaterMarkText = "Version"; this.saveaswadbtn.UseVisualStyleBackColor = false;
this.titleversion.TextChanged += new System.EventHandler(this.titleversion_TextChanged); this.saveaswadbtn.MouseEnter += new System.EventHandler(this.saveaswadbtn_MouseEnter);
// this.saveaswadbtn.MouseLeave += new System.EventHandler(this.saveaswadbtn_MouseLeave);
// titleidbox
//
this.titleidbox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.titleidbox.Location = new System.Drawing.Point(12, 38);
this.titleidbox.MaxLength = 16;
this.titleidbox.Name = "titleidbox";
this.titleidbox.Size = new System.Drawing.Size(176, 20);
this.titleidbox.TabIndex = 49;
this.titleidbox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.titleidbox.WaterMarkColor = System.Drawing.Color.Silver;
this.titleidbox.WaterMarkText = "Title ID";
this.titleidbox.TextChanged += new System.EventHandler(this.titleidbox_TextChanged);
//
// dlprogress
//
this.dlprogress.ContainerControl = this;
this.dlprogress.Location = new System.Drawing.Point(12, 95);
this.dlprogress.Name = "dlprogress";
this.dlprogress.Size = new System.Drawing.Size(250, 15);
this.dlprogress.TabIndex = 47;
// //
// ProxyAssistBtn // ProxyAssistBtn
// //
@ -603,7 +559,7 @@
this.keepenccontents.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.keepenccontents.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.keepenccontents.Location = new System.Drawing.Point(12, 437); this.keepenccontents.Location = new System.Drawing.Point(12, 437);
this.keepenccontents.Name = "keepenccontents"; this.keepenccontents.Name = "keepenccontents";
this.keepenccontents.Size = new System.Drawing.Size(165, 25); this.keepenccontents.Size = new System.Drawing.Size(165, 26);
this.keepenccontents.TabIndex = 52; this.keepenccontents.TabIndex = 52;
this.keepenccontents.Text = "Keep Encrypted Contents"; this.keepenccontents.Text = "Keep Encrypted Contents";
this.keepenccontents.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.keepenccontents.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
@ -644,26 +600,26 @@
this.decryptbox.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.decryptbox.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.decryptbox.Location = new System.Drawing.Point(12, 462); this.decryptbox.Location = new System.Drawing.Point(12, 462);
this.decryptbox.Name = "decryptbox"; this.decryptbox.Name = "decryptbox";
this.decryptbox.Size = new System.Drawing.Size(172, 24); this.decryptbox.Size = new System.Drawing.Size(172, 26);
this.decryptbox.TabIndex = 19; this.decryptbox.TabIndex = 19;
this.decryptbox.Text = "Create Decrypted Contents"; this.decryptbox.Text = "Create Decrypted Contents";
this.decryptbox.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.decryptbox.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.decryptbox.UseVisualStyleBackColor = true; this.decryptbox.UseVisualStyleBackColor = true;
// //
// saveaswadbox // localuse
// //
this.saveaswadbox.Appearance = System.Windows.Forms.Appearance.Button; this.localuse.Checked = true;
this.saveaswadbox.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.localuse.CheckState = System.Windows.Forms.CheckState.Checked;
this.saveaswadbox.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.localuse.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.saveaswadbox.Image = global::NUS_Downloader.Properties.Resources.disk; this.localuse.Image = global::NUS_Downloader.Properties.Resources.drive_disk;
this.saveaswadbox.Location = new System.Drawing.Point(230, 433); this.localuse.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.saveaswadbox.Name = "saveaswadbox"; this.localuse.Location = new System.Drawing.Point(91, 390);
this.saveaswadbox.Size = new System.Drawing.Size(32, 22); this.localuse.Name = "localuse";
this.saveaswadbox.TabIndex = 43; this.localuse.Size = new System.Drawing.Size(171, 22);
this.saveaswadbox.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.localuse.TabIndex = 8;
this.saveaswadbox.UseVisualStyleBackColor = true; this.localuse.Text = "Use Local Files If Available";
this.saveaswadbox.MouseEnter += new System.EventHandler(this.saveaswadbox_MouseEnter); this.localuse.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.saveaswadbox.MouseLeave += new System.EventHandler(this.saveaswadbox_MouseLeave); this.localuse.UseVisualStyleBackColor = true;
// //
// updateDatabaseToolStripMenuItem // updateDatabaseToolStripMenuItem
// //
@ -715,7 +671,7 @@
// //
// aboutNUSDToolStripMenuItem // aboutNUSDToolStripMenuItem
// //
this.aboutNUSDToolStripMenuItem.Image = global::NUS_Downloader.Properties.Resources.help; this.aboutNUSDToolStripMenuItem.Image = global::NUS_Downloader.Properties.Resources.information;
this.aboutNUSDToolStripMenuItem.Name = "aboutNUSDToolStripMenuItem"; this.aboutNUSDToolStripMenuItem.Name = "aboutNUSDToolStripMenuItem";
this.aboutNUSDToolStripMenuItem.Size = new System.Drawing.Size(182, 22); this.aboutNUSDToolStripMenuItem.Size = new System.Drawing.Size(182, 22);
this.aboutNUSDToolStripMenuItem.Text = "About NUSD"; this.aboutNUSDToolStripMenuItem.Text = "About NUSD";
@ -807,11 +763,46 @@
this.koreaToolStripMenuItem.Size = new System.Drawing.Size(117, 22); this.koreaToolStripMenuItem.Size = new System.Drawing.Size(117, 22);
this.koreaToolStripMenuItem.Text = "KOREA"; this.koreaToolStripMenuItem.Text = "KOREA";
// //
// titleversion
//
this.titleversion.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.titleversion.Location = new System.Drawing.Point(204, 38);
this.titleversion.MaxLength = 8;
this.titleversion.Name = "titleversion";
this.titleversion.Size = new System.Drawing.Size(58, 20);
this.titleversion.TabIndex = 50;
this.titleversion.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.titleversion.WaterMarkColor = System.Drawing.Color.Silver;
this.titleversion.WaterMarkText = "Version";
this.titleversion.TextChanged += new System.EventHandler(this.titleversion_TextChanged);
//
// titleidbox
//
this.titleidbox.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F);
this.titleidbox.Location = new System.Drawing.Point(12, 38);
this.titleidbox.MaxLength = 16;
this.titleidbox.Name = "titleidbox";
this.titleidbox.Size = new System.Drawing.Size(176, 20);
this.titleidbox.TabIndex = 49;
this.titleidbox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.titleidbox.WaterMarkColor = System.Drawing.Color.Silver;
this.titleidbox.WaterMarkText = "Title ID";
this.titleidbox.TextChanged += new System.EventHandler(this.titleidbox_TextChanged);
//
// dlprogress
//
this.dlprogress.ContainerControl = this;
this.dlprogress.Location = new System.Drawing.Point(12, 95);
this.dlprogress.Name = "dlprogress";
this.dlprogress.Size = new System.Drawing.Size(250, 15);
this.dlprogress.TabIndex = 47;
//
// Form1 // Form1
// //
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.ClientSize = new System.Drawing.Size(274, 491); this.ClientSize = new System.Drawing.Size(274, 491);
this.Controls.Add(this.saveaswadbtn);
this.Controls.Add(this.ProxyVerifyBox); this.Controls.Add(this.ProxyVerifyBox);
this.Controls.Add(this.proxyBox); this.Controls.Add(this.proxyBox);
this.Controls.Add(this.scriptsbutton); this.Controls.Add(this.scriptsbutton);
@ -827,11 +818,9 @@
this.Controls.Add(this.downloadstartbtn); this.Controls.Add(this.downloadstartbtn);
this.Controls.Add(this.wadnamebox); this.Controls.Add(this.wadnamebox);
this.Controls.Add(this.Extrasbtn); this.Controls.Add(this.Extrasbtn);
this.Controls.Add(this.ignoreticket);
this.Controls.Add(this.packbox); this.Controls.Add(this.packbox);
this.Controls.Add(this.decryptbox); this.Controls.Add(this.decryptbox);
this.Controls.Add(this.localuse); this.Controls.Add(this.localuse);
this.Controls.Add(this.saveaswadbox);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false; this.MaximizeBox = false;
@ -862,7 +851,6 @@
private System.ComponentModel.BackgroundWorker NUSDownloader; private System.ComponentModel.BackgroundWorker NUSDownloader;
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox wadnamebox; private System.Windows.Forms.TextBox wadnamebox;
private System.Windows.Forms.CheckBox ignoreticket;
private System.Windows.Forms.CheckBox decryptbox; private System.Windows.Forms.CheckBox decryptbox;
private System.Windows.Forms.Button databaseButton; private System.Windows.Forms.Button databaseButton;
private System.Windows.Forms.ContextMenuStrip databaseStrip; private System.Windows.Forms.ContextMenuStrip databaseStrip;
@ -887,7 +875,6 @@
private System.Windows.Forms.ContextMenuStrip extrasStrip; private System.Windows.Forms.ContextMenuStrip extrasStrip;
private System.Windows.Forms.ToolStripMenuItem loadInfoFromTMDToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem loadInfoFromTMDToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
private System.Windows.Forms.CheckBox saveaswadbox;
private System.Windows.Forms.ToolStripMenuItem proxySettingsToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem proxySettingsToolStripMenuItem;
private System.Windows.Forms.GroupBox proxyBox; private System.Windows.Forms.GroupBox proxyBox;
private System.Windows.Forms.TextBox ProxyUser; private System.Windows.Forms.TextBox ProxyUser;
@ -930,6 +917,7 @@
private System.Windows.Forms.CheckBox checkBox1; private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.Button SaveProxyPwdPermanentBtn; private System.Windows.Forms.Button SaveProxyPwdPermanentBtn;
private System.Windows.Forms.CheckBox keepenccontents; private System.Windows.Forms.CheckBox keepenccontents;
private System.Windows.Forms.Button saveaswadbtn;
} }
} }

View File

@ -810,7 +810,7 @@ namespace NUS_Downloader
statusbox.Text += "\r\n --- " + titleidbox.Text + " ---"; statusbox.Text += "\r\n --- " + titleidbox.Text + " ---";
// Handle SaveAs here so it shows up properly... // Handle SaveAs here so it shows up properly...
if (saveaswadbox.Checked) if (!(String.IsNullOrEmpty(WAD_Saveas_Filename)))
{ {
SaveFileDialog wad_saveas = new SaveFileDialog(); SaveFileDialog wad_saveas = new SaveFileDialog();
wad_saveas.Title = "Save WAD File..."; wad_saveas.Title = "Save WAD File...";
@ -896,26 +896,23 @@ namespace NUS_Downloader
} }
catch (Exception ex) catch (Exception ex)
{ {
if (ignoreticket.Checked == false) //WriteStatus("Download Failed: cetk");
{ /*WriteStatus("You may be able to retrieve the contents by Ignoring the Ticket (Check below)");
WriteStatus("Download Failed: cetk");
WriteStatus(" - Reason: " +
ex.Message.ToString().Replace("The remote server returned an error: ", ""));
WriteStatus("You may be able to retrieve the contents by Ignoring the Ticket (Check below)");
SetEnableforDownload(true); SetEnableforDownload(true);
downloadstartbtn.Text = "Start NUS Download!"; downloadstartbtn.Text = "Start NUS Download!";
dlprogress.Value = 0; dlprogress.Value = 0;
DeleteTitleDirectory(); DeleteTitleDirectory();
return; return;*/
}
else
{
WriteStatus("Ticket not found! Continuing, however WAD packing and decryption are not possible!"); WriteStatus("Ticket not found! Continuing, however WAD packing and decryption are not possible!");
WriteStatus(" - Reason: " +
ex.Message.ToString().Replace("The remote server returned an error: ", ""));
packbox.Checked = false; packbox.Checked = false;
decryptbox.Checked = false; decryptbox.Checked = false;
WAD_Saveas_Filename = String.Empty;
ticket_exists = false; ticket_exists = false;
} }
}
downloadstartbtn.Text = "Prerequisites: (2/2)"; downloadstartbtn.Text = "Prerequisites: (2/2)";
dlprogress.Value = 100; dlprogress.Value = 100;
@ -1333,13 +1330,15 @@ namespace NUS_Downloader
if (packbox.Checked == true) if (packbox.Checked == true)
{ {
wadnamebox.Enabled = true; wadnamebox.Enabled = true;
saveaswadbtn.Enabled = true;
// Change WAD name if applicable // Change WAD name if applicable
UpdatePackedName(); UpdatePackedName();
} }
else else
{ {
wadnamebox.Enabled = false; wadnamebox.Enabled = false;
wadnamebox.Text = ""; saveaswadbtn.Enabled = false;
wadnamebox.Text = String.Empty;
} }
} }
@ -1791,15 +1790,11 @@ namespace NUS_Downloader
if ((e.ClickedItem.OwnerItem.OwnerItem.Image) == (orange) || if ((e.ClickedItem.OwnerItem.OwnerItem.Image) == (orange) ||
(e.ClickedItem.OwnerItem.OwnerItem.Image) == (redorange)) (e.ClickedItem.OwnerItem.OwnerItem.Image) == (redorange))
{ {
ignoreticket.Checked = true; //ignoreticket.Checked = true;
WriteStatus("Note: This title has no ticket and cannot be packed/decrypted!"); WriteStatus("Note: This title has no ticket and cannot be packed/decrypted!");
packbox.Checked = false; packbox.Checked = false;
decryptbox.Checked = false; decryptbox.Checked = false;
} }
else
{
ignoreticket.Checked = false;
}
// Change WAD name if packed is already checked... // Change WAD name if packed is already checked...
if (packbox.Checked) if (packbox.Checked)
@ -1857,15 +1852,11 @@ namespace NUS_Downloader
// Check if a ticket is present... // Check if a ticket is present...
if ((e.ClickedItem.OwnerItem.Image) == (orange) || (e.ClickedItem.OwnerItem.Image) == (redorange)) if ((e.ClickedItem.OwnerItem.Image) == (orange) || (e.ClickedItem.OwnerItem.Image) == (redorange))
{ {
ignoreticket.Checked = true; //ignoreticket.Checked = true;
WriteStatus("Note: This title has no ticket and cannot be packed/decrypted!"); WriteStatus("Note: This title has no ticket and cannot be packed/decrypted!");
packbox.Checked = false; packbox.Checked = false;
decryptbox.Checked = false; decryptbox.Checked = false;
} }
else
{
ignoreticket.Checked = false;
}
// Change WAD name if packed is already checked... // Change WAD name if packed is already checked...
if (packbox.Checked) if (packbox.Checked)
@ -1932,15 +1923,11 @@ namespace NUS_Downloader
if ((e.ClickedItem.OwnerItem.Image) == (orange) || (e.ClickedItem.OwnerItem.Image) == (redorange)) if ((e.ClickedItem.OwnerItem.Image) == (orange) || (e.ClickedItem.OwnerItem.Image) == (redorange))
{ {
ignoreticket.Checked = true; //ignoreticket.Checked = true;
WriteStatus("Note: This title has no ticket and cannot be packed/decrypted!"); WriteStatus("Note: This title has no ticket and cannot be packed/decrypted!");
packbox.Checked = false; packbox.Checked = false;
decryptbox.Checked = false; decryptbox.Checked = false;
} }
else
{
ignoreticket.Checked = false;
}
// Change WAD name if packed is already checked... // Change WAD name if packed is already checked...
if (packbox.Checked) if (packbox.Checked)
@ -2086,8 +2073,11 @@ namespace NUS_Downloader
databaseButton.Enabled = enabled; databaseButton.Enabled = enabled;
packbox.Enabled = enabled; packbox.Enabled = enabled;
localuse.Enabled = enabled; localuse.Enabled = enabled;
ignoreticket.Enabled = enabled; saveaswadbtn.Enabled = enabled;
decryptbox.Enabled = enabled; decryptbox.Enabled = enabled;
keepenccontents.Enabled = enabled;
scriptsbutton.Enabled = enabled;
consoleCBox.Enabled = enabled;
} }
/// <summary> /// <summary>
@ -2795,7 +2785,7 @@ namespace NUS_Downloader
private void packbox_EnabledChanged(object sender, EventArgs e) private void packbox_EnabledChanged(object sender, EventArgs e)
{ {
saveaswadbox.Enabled = packbox.Enabled; saveaswadbtn.Enabled = packbox.Enabled;
//deletecontentsbox.Enabled = packbox.Enabled; //deletecontentsbox.Enabled = packbox.Enabled;
} }
@ -3217,20 +3207,20 @@ namespace NUS_Downloader
button3.ImageAlign = ContentAlignment.MiddleCenter; button3.ImageAlign = ContentAlignment.MiddleCenter;
} }
private void saveaswadbox_MouseEnter(object sender, EventArgs e) private void saveaswadbtn_MouseEnter(object sender, EventArgs e)
{ {
saveaswadbox.Location = new Point(200, 433); saveaswadbtn.Location = new Point(190, 433);
saveaswadbox.Size = new Size(62, 22); saveaswadbtn.Size = new Size(72, 22);
saveaswadbox.Text = "Save As..."; saveaswadbtn.Text = "Save As";
button3.ImageAlign = ContentAlignment.MiddleLeft; saveaswadbtn.ImageAlign = ContentAlignment.MiddleLeft;
} }
private void saveaswadbox_MouseLeave(object sender, EventArgs e) private void saveaswadbtn_MouseLeave(object sender, EventArgs e)
{ {
saveaswadbox.Location = new Point(230, 433); saveaswadbtn.Location = new Point(230, 433);
saveaswadbox.Size = new Size(32, 22); saveaswadbtn.Size = new Size(32, 22);
saveaswadbox.Text = String.Empty; saveaswadbtn.Text = String.Empty;
saveaswadbox.ImageAlign = ContentAlignment.MiddleCenter; saveaswadbtn.ImageAlign = ContentAlignment.MiddleCenter;
} }
} }
} }

View File

@ -136,6 +136,7 @@
<None Include="Resources\information.png" /> <None Include="Resources\information.png" />
<None Include="Resources\box.png" /> <None Include="Resources\box.png" />
<None Include="Resources\disk.png" /> <None Include="Resources\disk.png" />
<None Include="Resources\drive_disk.png" />
<Content Include="Resources\key.png" /> <Content Include="Resources\key.png" />
<None Include="Resources\page_white_magnify.png" /> <None Include="Resources\page_white_magnify.png" />
<None Include="Resources\server_link.png" /> <None Include="Resources\server_link.png" />

View File

@ -158,6 +158,13 @@ namespace NUS_Downloader.Properties {
} }
} }
internal static System.Drawing.Bitmap drive_disk {
get {
object obj = ResourceManager.GetObject("drive_disk", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
internal static System.Drawing.Bitmap folder_table { internal static System.Drawing.Bitmap folder_table {
get { get {
object obj = ResourceManager.GetObject("folder_table", resourceCulture); object obj = ResourceManager.GetObject("folder_table", resourceCulture);

View File

@ -121,6 +121,9 @@
<data name="arrow_up" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="arrow_up" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\arrow_up.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\arrow_up.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="disk" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\disk.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="bullet_redorange" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="bullet_redorange" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\bullet_redorange.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\bullet_redorange.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
@ -212,7 +215,7 @@
<value>..\Resources\information.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\information.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="disk" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="drive_disk" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\disk.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\drive_disk.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
</root> </root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 695 B