Proxy settings - Round 2

This commit is contained in:
givememystuffplease 2009-08-20 17:41:08 +00:00
parent 8702d800ee
commit e1ff5fd55c
7 changed files with 444 additions and 169 deletions

View File

@ -96,17 +96,8 @@
this.button3 = new System.Windows.Forms.Button(); this.button3 = new System.Windows.Forms.Button();
this.contentsEdit = new System.Windows.Forms.ListBox(); this.contentsEdit = new System.Windows.Forms.ListBox();
this.contentModBox = new System.Windows.Forms.GroupBox(); this.contentModBox = new System.Windows.Forms.GroupBox();
this.button16 = new System.Windows.Forms.Button();
this.button13 = new System.Windows.Forms.Button();
this.button15 = new System.Windows.Forms.Button(); this.button15 = new System.Windows.Forms.Button();
this.button14 = new System.Windows.Forms.Button(); this.button14 = new System.Windows.Forms.Button();
this.button12 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.button11 = new System.Windows.Forms.Button();
this.button9 = new System.Windows.Forms.Button();
this.button10 = new System.Windows.Forms.Button();
this.radioButton1 = new System.Windows.Forms.RadioButton();
this.radioButton2 = new System.Windows.Forms.RadioButton();
this.button17 = new System.Windows.Forms.Button(); this.button17 = new System.Windows.Forms.Button();
this.extrasStrip = new System.Windows.Forms.ContextMenuStrip(this.components); this.extrasStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
this.loadInfoFromTMDToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.loadInfoFromTMDToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
@ -116,13 +107,37 @@
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.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.proxySettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.saveaswadbox = new System.Windows.Forms.CheckBox(); this.saveaswadbox = new System.Windows.Forms.CheckBox();
this.deletecontentsbox = new System.Windows.Forms.CheckBox(); this.deletecontentsbox = new System.Windows.Forms.CheckBox();
this.proxyBox = new System.Windows.Forms.GroupBox();
this.label13 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.ProxyUser = new System.Windows.Forms.TextBox();
this.SaveProxyBtn = new System.Windows.Forms.Button();
this.ProxyURL = new System.Windows.Forms.TextBox();
this.ProxyAssistBtn = new System.Windows.Forms.Button();
this.button16 = new System.Windows.Forms.Button();
this.button13 = new System.Windows.Forms.Button();
this.button12 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.button11 = new System.Windows.Forms.Button();
this.button9 = new System.Windows.Forms.Button();
this.button10 = new System.Windows.Forms.Button();
this.radioButton1 = new System.Windows.Forms.RadioButton();
this.radioButton2 = new System.Windows.Forms.RadioButton();
this.ProxyVerifyBox = new System.Windows.Forms.GroupBox();
this.label14 = new System.Windows.Forms.Label();
this.ProxyPwdBox = new System.Windows.Forms.TextBox();
this.SaveProxyPwdBtn = new System.Windows.Forms.Button();
this.databaseStrip.SuspendLayout(); this.databaseStrip.SuspendLayout();
this.tmdgpbox.SuspendLayout(); this.tmdgpbox.SuspendLayout();
this.ticketgpbox.SuspendLayout(); this.ticketgpbox.SuspendLayout();
this.contentModBox.SuspendLayout(); this.contentModBox.SuspendLayout();
this.extrasStrip.SuspendLayout(); this.extrasStrip.SuspendLayout();
this.proxyBox.SuspendLayout();
this.ProxyVerifyBox.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// Extrasbtn // Extrasbtn
@ -755,28 +770,6 @@
this.contentModBox.Text = "Edit Title Contents"; this.contentModBox.Text = "Edit Title Contents";
this.contentModBox.Visible = false; this.contentModBox.Visible = false;
// //
// button16
//
this.button16.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button16.Image = global::NUS_Downloader.Properties.Resources.bug_add;
this.button16.Location = new System.Drawing.Point(136, 198);
this.button16.Name = "button16";
this.button16.Size = new System.Drawing.Size(26, 26);
this.button16.TabIndex = 44;
this.button16.UseVisualStyleBackColor = true;
this.button16.Click += new System.EventHandler(this.button16_Click);
//
// button13
//
this.button13.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button13.Image = global::NUS_Downloader.Properties.Resources.link;
this.button13.Location = new System.Drawing.Point(104, 198);
this.button13.Name = "button13";
this.button13.Size = new System.Drawing.Size(26, 26);
this.button13.TabIndex = 43;
this.button13.UseVisualStyleBackColor = true;
this.button13.Click += new System.EventHandler(this.button13_Click);
//
// button15 // button15
// //
this.button15.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.button15.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
@ -799,6 +792,206 @@
this.button14.UseVisualStyleBackColor = true; this.button14.UseVisualStyleBackColor = true;
this.button14.Click += new System.EventHandler(this.button14_Click); this.button14.Click += new System.EventHandler(this.button14_Click);
// //
// button17
//
this.button17.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button17.Location = new System.Drawing.Point(278, 345);
this.button17.Name = "button17";
this.button17.Size = new System.Drawing.Size(249, 26);
this.button17.TabIndex = 42;
this.button17.Text = "Modify Individual Contents...";
this.button17.UseVisualStyleBackColor = true;
this.button17.Click += new System.EventHandler(this.button17_Click);
//
// extrasStrip
//
this.extrasStrip.AllowMerge = false;
this.extrasStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.loadInfoFromTMDToolStripMenuItem,
this.toolStripSeparator3,
this.emulateUpdate,
this.toolStripSeparator4,
this.proxySettingsToolStripMenuItem});
this.extrasStrip.Name = "extrasStrip";
this.extrasStrip.Size = new System.Drawing.Size(220, 82);
//
// loadInfoFromTMDToolStripMenuItem
//
this.loadInfoFromTMDToolStripMenuItem.Name = "loadInfoFromTMDToolStripMenuItem";
this.loadInfoFromTMDToolStripMenuItem.Size = new System.Drawing.Size(219, 22);
this.loadInfoFromTMDToolStripMenuItem.Text = "Load Info from TMD";
this.loadInfoFromTMDToolStripMenuItem.Click += new System.EventHandler(this.loadInfoFromTMDToolStripMenuItem_Click);
//
// toolStripSeparator3
//
this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(216, 6);
//
// emulateUpdate
//
this.emulateUpdate.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.uSANTSCToolStripMenuItem,
this.europePALToolStripMenuItem,
this.japanNTSCJToolStripMenuItem,
this.koreaToolStripMenuItem});
this.emulateUpdate.Name = "emulateUpdate";
this.emulateUpdate.Size = new System.Drawing.Size(219, 22);
this.emulateUpdate.Text = "Emulate Wii System Update";
this.emulateUpdate.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.emulateUpdate_DropDownItemClicked);
//
// uSANTSCToolStripMenuItem
//
this.uSANTSCToolStripMenuItem.Name = "uSANTSCToolStripMenuItem";
this.uSANTSCToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
this.uSANTSCToolStripMenuItem.Text = "USA (NTSC)";
//
// europePALToolStripMenuItem
//
this.europePALToolStripMenuItem.Name = "europePALToolStripMenuItem";
this.europePALToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
this.europePALToolStripMenuItem.Text = "Europe (PAL)";
//
// japanNTSCJToolStripMenuItem
//
this.japanNTSCJToolStripMenuItem.Name = "japanNTSCJToolStripMenuItem";
this.japanNTSCJToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
this.japanNTSCJToolStripMenuItem.Text = "Japan (NTSC-J)";
//
// koreaToolStripMenuItem
//
this.koreaToolStripMenuItem.Name = "koreaToolStripMenuItem";
this.koreaToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
this.koreaToolStripMenuItem.Text = "Korea";
//
// toolStripSeparator4
//
this.toolStripSeparator4.Name = "toolStripSeparator4";
this.toolStripSeparator4.Size = new System.Drawing.Size(216, 6);
//
// proxySettingsToolStripMenuItem
//
this.proxySettingsToolStripMenuItem.Name = "proxySettingsToolStripMenuItem";
this.proxySettingsToolStripMenuItem.Size = new System.Drawing.Size(219, 22);
this.proxySettingsToolStripMenuItem.Text = "Proxy Settings";
this.proxySettingsToolStripMenuItem.Click += new System.EventHandler(this.proxySettingsToolStripMenuItem_Click);
//
// saveaswadbox
//
this.saveaswadbox.AutoSize = true;
this.saveaswadbox.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.saveaswadbox.Location = new System.Drawing.Point(22, 437);
this.saveaswadbox.Name = "saveaswadbox";
this.saveaswadbox.Size = new System.Drawing.Size(58, 16);
this.saveaswadbox.TabIndex = 43;
this.saveaswadbox.Text = "SaveAs";
this.saveaswadbox.UseVisualStyleBackColor = true;
this.saveaswadbox.Paint += new System.Windows.Forms.PaintEventHandler(this.saveaswadbox_Paint);
//
// deletecontentsbox
//
this.deletecontentsbox.AutoSize = true;
this.deletecontentsbox.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.deletecontentsbox.Location = new System.Drawing.Point(22, 454);
this.deletecontentsbox.Name = "deletecontentsbox";
this.deletecontentsbox.Size = new System.Drawing.Size(62, 28);
this.deletecontentsbox.TabIndex = 44;
this.deletecontentsbox.Text = "Delete\r\nContents";
this.deletecontentsbox.UseVisualStyleBackColor = true;
//
// proxyBox
//
this.proxyBox.BackColor = System.Drawing.Color.White;
this.proxyBox.Controls.Add(this.label13);
this.proxyBox.Controls.Add(this.label12);
this.proxyBox.Controls.Add(this.ProxyUser);
this.proxyBox.Controls.Add(this.SaveProxyBtn);
this.proxyBox.Controls.Add(this.ProxyAssistBtn);
this.proxyBox.Controls.Add(this.ProxyURL);
this.proxyBox.Location = new System.Drawing.Point(33, 221);
this.proxyBox.Name = "proxyBox";
this.proxyBox.Size = new System.Drawing.Size(212, 114);
this.proxyBox.TabIndex = 45;
this.proxyBox.TabStop = false;
this.proxyBox.Text = "Proxy Settings";
this.proxyBox.Visible = false;
//
// label13
//
this.label13.AutoSize = true;
this.label13.Location = new System.Drawing.Point(6, 55);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(32, 13);
this.label13.TabIndex = 32;
this.label13.Text = "User:";
//
// label12
//
this.label12.AutoSize = true;
this.label12.Location = new System.Drawing.Point(6, 29);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(36, 13);
this.label12.TabIndex = 31;
this.label12.Text = "Proxy:";
//
// ProxyUser
//
this.ProxyUser.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.ProxyUser.Location = new System.Drawing.Point(55, 53);
this.ProxyUser.Name = "ProxyUser";
this.ProxyUser.Size = new System.Drawing.Size(151, 20);
this.ProxyUser.TabIndex = 30;
//
// SaveProxyBtn
//
this.SaveProxyBtn.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.SaveProxyBtn.Location = new System.Drawing.Point(6, 79);
this.SaveProxyBtn.Name = "SaveProxyBtn";
this.SaveProxyBtn.Size = new System.Drawing.Size(161, 26);
this.SaveProxyBtn.TabIndex = 29;
this.SaveProxyBtn.Text = "Save Proxy Settings";
this.SaveProxyBtn.UseVisualStyleBackColor = true;
this.SaveProxyBtn.Click += new System.EventHandler(this.SaveProxyBtn_Click);
//
// ProxyURL
//
this.ProxyURL.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.ProxyURL.Location = new System.Drawing.Point(55, 27);
this.ProxyURL.Name = "ProxyURL";
this.ProxyURL.Size = new System.Drawing.Size(151, 20);
this.ProxyURL.TabIndex = 0;
//
// ProxyAssistBtn
//
this.ProxyAssistBtn.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.ProxyAssistBtn.Image = global::NUS_Downloader.Properties.Resources.help;
this.ProxyAssistBtn.Location = new System.Drawing.Point(177, 79);
this.ProxyAssistBtn.Name = "ProxyAssistBtn";
this.ProxyAssistBtn.Size = new System.Drawing.Size(29, 26);
this.ProxyAssistBtn.TabIndex = 28;
this.ProxyAssistBtn.UseVisualStyleBackColor = true;
//
// button16
//
this.button16.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button16.Image = global::NUS_Downloader.Properties.Resources.bug_add;
this.button16.Location = new System.Drawing.Point(136, 198);
this.button16.Name = "button16";
this.button16.Size = new System.Drawing.Size(26, 26);
this.button16.TabIndex = 44;
this.button16.UseVisualStyleBackColor = true;
this.button16.Click += new System.EventHandler(this.button16_Click);
//
// button13
//
this.button13.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.button13.Image = global::NUS_Downloader.Properties.Resources.link;
this.button13.Location = new System.Drawing.Point(104, 198);
this.button13.Name = "button13";
this.button13.Size = new System.Drawing.Size(26, 26);
this.button13.TabIndex = 43;
this.button13.UseVisualStyleBackColor = true;
this.button13.Click += new System.EventHandler(this.button13_Click);
//
// button12 // button12
// //
this.button12.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.button12.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
@ -878,97 +1071,49 @@
this.radioButton2.UseVisualStyleBackColor = true; this.radioButton2.UseVisualStyleBackColor = true;
this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged); this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged);
// //
// button17 // ProxyVerifyBox
// //
this.button17.FlatStyle = System.Windows.Forms.FlatStyle.Popup; this.ProxyVerifyBox.BackColor = System.Drawing.SystemColors.Control;
this.button17.Location = new System.Drawing.Point(278, 345); this.ProxyVerifyBox.Controls.Add(this.SaveProxyPwdBtn);
this.button17.Name = "button17"; this.ProxyVerifyBox.Controls.Add(this.label14);
this.button17.Size = new System.Drawing.Size(249, 26); this.ProxyVerifyBox.Controls.Add(this.ProxyPwdBox);
this.button17.TabIndex = 42; this.ProxyVerifyBox.Location = new System.Drawing.Point(33, 202);
this.button17.Text = "Modify Individual Contents..."; this.ProxyVerifyBox.Name = "ProxyVerifyBox";
this.button17.UseVisualStyleBackColor = true; this.ProxyVerifyBox.Size = new System.Drawing.Size(212, 75);
this.button17.Click += new System.EventHandler(this.button17_Click); this.ProxyVerifyBox.TabIndex = 46;
this.ProxyVerifyBox.TabStop = false;
this.ProxyVerifyBox.Text = "Verify Credentials";
this.ProxyVerifyBox.Visible = false;
// //
// extrasStrip // label14
// //
this.extrasStrip.AllowMerge = false; this.label14.AutoSize = true;
this.extrasStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.label14.Location = new System.Drawing.Point(6, 21);
this.loadInfoFromTMDToolStripMenuItem, this.label14.Name = "label14";
this.toolStripSeparator3, this.label14.Size = new System.Drawing.Size(62, 13);
this.emulateUpdate}); this.label14.TabIndex = 33;
this.extrasStrip.Name = "extrasStrip"; this.label14.Text = "Proxy Pass:";
this.extrasStrip.Size = new System.Drawing.Size(220, 54);
// //
// loadInfoFromTMDToolStripMenuItem // ProxyPwdBox
// //
this.loadInfoFromTMDToolStripMenuItem.Name = "loadInfoFromTMDToolStripMenuItem"; this.ProxyPwdBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.loadInfoFromTMDToolStripMenuItem.Size = new System.Drawing.Size(219, 22); this.ProxyPwdBox.Location = new System.Drawing.Point(71, 19);
this.loadInfoFromTMDToolStripMenuItem.Text = "Load Info from TMD"; this.ProxyPwdBox.Name = "ProxyPwdBox";
this.loadInfoFromTMDToolStripMenuItem.Click += new System.EventHandler(this.loadInfoFromTMDToolStripMenuItem_Click); this.ProxyPwdBox.Size = new System.Drawing.Size(135, 20);
this.ProxyPwdBox.TabIndex = 32;
this.ProxyPwdBox.UseSystemPasswordChar = true;
this.ProxyPwdBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ProxyPwdBox_KeyPress);
// //
// toolStripSeparator3 // SaveProxyPwdBtn
// //
this.toolStripSeparator3.Name = "toolStripSeparator3"; this.SaveProxyPwdBtn.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.toolStripSeparator3.Size = new System.Drawing.Size(216, 6); this.SaveProxyPwdBtn.Location = new System.Drawing.Point(9, 43);
// this.SaveProxyPwdBtn.Name = "SaveProxyPwdBtn";
// emulateUpdate this.SaveProxyPwdBtn.Size = new System.Drawing.Size(197, 23);
// this.SaveProxyPwdBtn.TabIndex = 34;
this.emulateUpdate.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.SaveProxyPwdBtn.Text = "Save (This Session Only)";
this.uSANTSCToolStripMenuItem, this.SaveProxyPwdBtn.UseVisualStyleBackColor = true;
this.europePALToolStripMenuItem, this.SaveProxyPwdBtn.Click += new System.EventHandler(this.button18_Click);
this.japanNTSCJToolStripMenuItem,
this.koreaToolStripMenuItem});
this.emulateUpdate.Name = "emulateUpdate";
this.emulateUpdate.Size = new System.Drawing.Size(219, 22);
this.emulateUpdate.Text = "Emulate Wii System Update";
this.emulateUpdate.DropDownItemClicked += new System.Windows.Forms.ToolStripItemClickedEventHandler(this.emulateUpdate_DropDownItemClicked);
//
// uSANTSCToolStripMenuItem
//
this.uSANTSCToolStripMenuItem.Name = "uSANTSCToolStripMenuItem";
this.uSANTSCToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
this.uSANTSCToolStripMenuItem.Text = "USA (NTSC)";
//
// europePALToolStripMenuItem
//
this.europePALToolStripMenuItem.Name = "europePALToolStripMenuItem";
this.europePALToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
this.europePALToolStripMenuItem.Text = "Europe (PAL)";
//
// japanNTSCJToolStripMenuItem
//
this.japanNTSCJToolStripMenuItem.Name = "japanNTSCJToolStripMenuItem";
this.japanNTSCJToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
this.japanNTSCJToolStripMenuItem.Text = "Japan (NTSC-J)";
//
// koreaToolStripMenuItem
//
this.koreaToolStripMenuItem.Name = "koreaToolStripMenuItem";
this.koreaToolStripMenuItem.Size = new System.Drawing.Size(154, 22);
this.koreaToolStripMenuItem.Text = "Korea";
//
// saveaswadbox
//
this.saveaswadbox.AutoSize = true;
this.saveaswadbox.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.saveaswadbox.Location = new System.Drawing.Point(22, 437);
this.saveaswadbox.Name = "saveaswadbox";
this.saveaswadbox.Size = new System.Drawing.Size(58, 16);
this.saveaswadbox.TabIndex = 43;
this.saveaswadbox.Text = "SaveAs";
this.saveaswadbox.UseVisualStyleBackColor = true;
this.saveaswadbox.Paint += new System.Windows.Forms.PaintEventHandler(this.saveaswadbox_Paint);
//
// deletecontentsbox
//
this.deletecontentsbox.AutoSize = true;
this.deletecontentsbox.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.deletecontentsbox.Location = new System.Drawing.Point(22, 454);
this.deletecontentsbox.Name = "deletecontentsbox";
this.deletecontentsbox.Size = new System.Drawing.Size(62, 28);
this.deletecontentsbox.TabIndex = 44;
this.deletecontentsbox.Text = "Delete\r\nContents";
this.deletecontentsbox.UseVisualStyleBackColor = true;
// //
// Form1 // Form1
// //
@ -977,6 +1122,7 @@
this.ClientSize = new System.Drawing.Size(539, 492); this.ClientSize = new System.Drawing.Size(539, 492);
this.Controls.Add(this.deletecontentsbox); this.Controls.Add(this.deletecontentsbox);
this.Controls.Add(this.button3); this.Controls.Add(this.button3);
this.Controls.Add(this.ProxyVerifyBox);
this.Controls.Add(this.shamelessvariablelabel); this.Controls.Add(this.shamelessvariablelabel);
this.Controls.Add(this.button1); this.Controls.Add(this.button1);
this.Controls.Add(this.button17); this.Controls.Add(this.button17);
@ -986,15 +1132,16 @@
this.Controls.Add(this.databaseButton); this.Controls.Add(this.databaseButton);
this.Controls.Add(this.button5); this.Controls.Add(this.button5);
this.Controls.Add(this.contentModBox); this.Controls.Add(this.contentModBox);
this.Controls.Add(this.proxyBox);
this.Controls.Add(this.button4); this.Controls.Add(this.button4);
this.Controls.Add(this.wadnamebox); this.Controls.Add(this.wadnamebox);
this.Controls.Add(this.button7);
this.Controls.Add(this.truchabox); this.Controls.Add(this.truchabox);
this.Controls.Add(this.label2); this.Controls.Add(this.label2);
this.Controls.Add(this.titleversion); this.Controls.Add(this.titleversion);
this.Controls.Add(this.button2); this.Controls.Add(this.button2);
this.Controls.Add(this.decryptbox); this.Controls.Add(this.decryptbox);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Controls.Add(this.button7);
this.Controls.Add(this.radioButton1); this.Controls.Add(this.radioButton1);
this.Controls.Add(this.radioButton2); this.Controls.Add(this.radioButton2);
this.Controls.Add(this.dlprogress); this.Controls.Add(this.dlprogress);
@ -1021,6 +1168,10 @@
this.ticketgpbox.PerformLayout(); this.ticketgpbox.PerformLayout();
this.contentModBox.ResumeLayout(false); this.contentModBox.ResumeLayout(false);
this.extrasStrip.ResumeLayout(false); this.extrasStrip.ResumeLayout(false);
this.proxyBox.ResumeLayout(false);
this.proxyBox.PerformLayout();
this.ProxyVerifyBox.ResumeLayout(false);
this.ProxyVerifyBox.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout(); this.PerformLayout();
@ -1116,6 +1267,19 @@
private System.Windows.Forms.ToolStripMenuItem koreaToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem koreaToolStripMenuItem;
private System.Windows.Forms.CheckBox saveaswadbox; private System.Windows.Forms.CheckBox saveaswadbox;
private System.Windows.Forms.CheckBox deletecontentsbox; private System.Windows.Forms.CheckBox deletecontentsbox;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
private System.Windows.Forms.ToolStripMenuItem proxySettingsToolStripMenuItem;
private System.Windows.Forms.GroupBox proxyBox;
private System.Windows.Forms.TextBox ProxyUser;
private System.Windows.Forms.Button SaveProxyBtn;
private System.Windows.Forms.Button ProxyAssistBtn;
private System.Windows.Forms.TextBox ProxyURL;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.GroupBox ProxyVerifyBox;
private System.Windows.Forms.Button SaveProxyPwdBtn;
private System.Windows.Forms.Label label14;
private System.Windows.Forms.TextBox ProxyPwdBox;
} }
} }

View File

@ -42,6 +42,11 @@ namespace NUS_Downloader
byte[] cert_total_sha1 = new byte[20] {0xAC, 0xE0, 0xF1, 0x5D, 0x2A, 0x85, 0x1C, 0x38, 0x3F, 0xE4, 0x65, 0x7A, 0xFC, 0x38, 0x40, 0xD6, 0xFF, 0xE3, 0x0A, 0xD0}; byte[] cert_total_sha1 = new byte[20] {0xAC, 0xE0, 0xF1, 0x5D, 0x2A, 0x85, 0x1C, 0x38, 0x3F, 0xE4, 0x65, 0x7A, 0xFC, 0x38, 0x40, 0xD6, 0xFF, 0xE3, 0x0A, 0xD0};
string WAD_Saveas_Filename; string WAD_Saveas_Filename;
// Proxy stuff...
string proxy_url;
string proxy_usr;
string proxy_pwd;
/* /*
public struct WADHeader public struct WADHeader
{ {
@ -81,9 +86,7 @@ namespace NUS_Downloader
InitializeComponent(); InitializeComponent();
Application.DoEvents(); Application.DoEvents();
// certs.sys / key.bin BootChecks();
if (BootChecks() == false)
return;
// Vars // Vars
bool startnow = false; bool startnow = false;
@ -176,43 +179,13 @@ namespace NUS_Downloader
/// Checks certain file existances, etc. /// Checks certain file existances, etc.
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
private bool BootChecks() private void BootChecks()
{ {
// Success?
bool result = true;
// Directory stuff // Directory stuff
string currentdir = Application.StartupPath; string currentdir = Application.StartupPath;
if (currentdir.EndsWith(Convert.ToString(Path.DirectorySeparatorChar)) == false) if (currentdir.EndsWith(Convert.ToString(Path.DirectorySeparatorChar)) == false)
currentdir += Path.DirectorySeparatorChar; currentdir += Path.DirectorySeparatorChar;
/* Check for certs file
if (File.Exists(currentdir + "cert.sys") == false)
{
foreach (Control ctrl in this.Controls)
{
ctrl.Enabled = false;
}
getcerts.Enabled = true;
WriteStatus("You do not have a certs file. Press the button below to generate a cert file!");
result = false;
}
else if (verifyMd5Hash(currentdir + "cert.sys", certs_MD5) == false)
{
foreach (Control ctrl in this.Controls)
{
ctrl.Enabled = false;
}
getcerts.Enabled = true;
WriteStatus("Your certs file is corrupted/invalid. Press the button below to generate a cert file!");
result = false;
}
else
{
getcerts.Visible = false;
WriteStatus("Certs file is present and intact.");
}*/
// Check for Wii common key bin file... // Check for Wii common key bin file...
if (File.Exists(currentdir + "key.bin") == false) if (File.Exists(currentdir + "key.bin") == false)
{ {
@ -225,22 +198,13 @@ namespace NUS_Downloader
} }
// Check for Wii KOR common key bin file... // Check for Wii KOR common key bin file...
if (File.Exists(currentdir + "kkey.bin") == false) if (File.Exists(currentdir + "kkey.bin") == true)
{
//WriteStatus("Korean Common Key (kkey.bin) missing! Decryption disabled!");
//decryptbox.Visible = false;
}
else
{ {
WriteStatus("Korean Common Key detected."); WriteStatus("Korean Common Key detected.");
} }
// Check for DSi common key bin file... // Check for DSi common key bin file...
if (File.Exists(currentdir + "dsikey.bin") == false) if (File.Exists(currentdir + "dsikey.bin") == true)
{
// Do not pester about DSi key
}
else
{ {
WriteStatus("DSi Common Key detected."); WriteStatus("DSi Common Key detected.");
dsidecrypt = true; dsidecrypt = true;
@ -267,7 +231,36 @@ namespace NUS_Downloader
ShowInnerToolTips(false); ShowInnerToolTips(false);
} }
return result; // Check for Proxy Settings file...
if (File.Exists(currentdir + "proxy.txt") == true)
{
WriteStatus("Proxy settings detected.");
string[] proxy_file = File.ReadAllLines(currentdir + "proxy.txt");
proxy_url = proxy_file[0];
if (proxy_file.Length > 1)
{
proxy_usr = proxy_file[1];
SetAllEnabled(false);
ProxyVerifyBox.Visible = true; ProxyVerifyBox.Enabled = true;
ProxyPwdBox.Enabled = true; SaveProxyBtn.Enabled = true;
ProxyVerifyBox.Select();
}
}
}
private void SetAllEnabled(bool enabled)
{
for (int a = 0; a < this.Controls.Count; a++)
{
try
{
this.Controls[a].Enabled = enabled;
}
catch
{
// ...
}
}
} }
/// <summary> /// <summary>
@ -766,8 +759,30 @@ namespace NUS_Downloader
generalWC.Headers.Add("User-Agent", "wii libnup/1.0"); generalWC.Headers.Add("User-Agent", "wii libnup/1.0");
// Proxy // Proxy
generalWC.Proxy = WebRequest.GetSystemWebProxy(); if (!(String.IsNullOrEmpty(proxy_url)))
generalWC.UseDefaultCredentials = true; {
WebProxy customproxy = new WebProxy();
customproxy.Address = new Uri(proxy_url);
if (String.IsNullOrEmpty(proxy_usr))
customproxy.UseDefaultCredentials = true;
else
{
NetworkCredential cred = new NetworkCredential();
cred.UserName = proxy_usr;
if (String.IsNullOrEmpty(proxy_pwd))
cred.Password = proxy_pwd;
customproxy.Credentials = cred;
}
generalWC.Proxy = customproxy;
WriteStatus("Custom proxy settings applied!");
}
else
{
generalWC.Proxy = WebRequest.GetSystemWebProxy();
generalWC.UseDefaultCredentials = true;
}
// Get placement directory early... // Get placement directory early...
string titledirectory; string titledirectory;
@ -3663,5 +3678,90 @@ namespace NUS_Downloader
else else
e.Graphics.DrawImageUnscaled(orange, -7, -5); */ e.Graphics.DrawImageUnscaled(orange, -7, -5); */
} }
private void SaveProxyBtn_Click(object sender, EventArgs e)
{
// Current directory...
string currentdir = Application.StartupPath;
if (!(currentdir.EndsWith(@"\")) || !(currentdir.EndsWith(@"/")))
currentdir += @"\";
if ((String.IsNullOrEmpty(ProxyURL.Text)) && (String.IsNullOrEmpty(ProxyUser.Text)) && ((File.Exists(currentdir + "proxy.txt"))))
{
File.Delete(currentdir + "proxy.txt");
proxyBox.Visible = false;
proxy_usr = ""; proxy_url = ""; proxy_pwd = "";
WriteStatus("Proxy settings deleted!");
return;
}
else if ((String.IsNullOrEmpty(ProxyURL.Text)) && (String.IsNullOrEmpty(ProxyUser.Text)) && ((!(File.Exists(currentdir + "proxy.txt")))))
{
proxyBox.Visible = false;
WriteStatus("No proxy settings saved!");
return;
}
string proxy_file = "";
if (!(String.IsNullOrEmpty(ProxyURL.Text)))
{
proxy_file += ProxyURL.Text + "\n";
proxy_url = ProxyURL.Text;
}
if (!(String.IsNullOrEmpty(ProxyUser.Text)))
{
proxy_file += ProxyUser.Text;
proxy_usr = ProxyUser.Text;
}
if (!(String.IsNullOrEmpty(proxy_file)))
{
File.WriteAllText(currentdir + "proxy.txt", proxy_file);
WriteStatus("Proxy settings saved!");
}
proxyBox.Visible = false;
SetAllEnabled(false);
ProxyVerifyBox.Visible = true; ProxyVerifyBox.Enabled = true;
ProxyPwdBox.Enabled = true; SaveProxyBtn.Enabled = true;
ProxyVerifyBox.Select();
}
private void proxySettingsToolStripMenuItem_Click(object sender, EventArgs e)
{
// Current directory...
string currentdir = Application.StartupPath;
if (!(currentdir.EndsWith(@"\")) || !(currentdir.EndsWith(@"/")))
currentdir += @"\";
// Check for Proxy Settings file...
if (File.Exists(currentdir + "proxy.txt") == true)
{
string[] proxy_file = File.ReadAllLines(currentdir + "proxy.txt");
ProxyURL.Text = proxy_file[0];
if (proxy_file.Length > 1)
{
ProxyUser.Text = proxy_file[1];
}
}
proxyBox.Visible = true;
}
private void button18_Click(object sender, EventArgs e)
{
proxy_pwd = ProxyPwdBox.Text;
ProxyVerifyBox.Visible = false;
SetAllEnabled(true);
}
private void ProxyPwdBox_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == Convert.ToChar(Keys.Enter))
button18_Click("LOLWUT", EventArgs.Empty);
}
} }
} }

View File

@ -123,6 +123,9 @@
<metadata name="databaseStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="databaseStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>159, 17</value> <value>159, 17</value>
</metadata> </metadata>
<metadata name="extrasStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>285, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="button12.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="button12.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
@ -330,9 +333,6 @@
1sV/DvoUn9RT8j8FdlkrvvDH+0eqk6iKjzT6K8x9ib8G3pPIf5i62eYpA0TWAAAAAElFTkSuQmCC 1sV/DvoUn9RT8j8FdlkrvvDH+0eqk6iKjzT6K8x9ib8G3pPIf5i62eYpA0TWAAAAAElFTkSuQmCC
</value> </value>
</data> </data>
<metadata name="extrasStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>285, 17</value>
</metadata>
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
AAABAAUAEBAAAAAAIABoBAAAVgAAACAgAAAAACAAqBAAAL4EAAAwMAAAAAAgAKglAABmFQAAQEAAAAAA AAABAAUAEBAAAAAAIABoBAAAVgAAACAgAAAAACAAqBAAAL4EAAAwMAAAAAAgAKglAABmFQAAQEAAAAAA

View File

@ -30,7 +30,7 @@
<UpdatePeriodically>false</UpdatePeriodically> <UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired> <UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions> <MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>8</ApplicationRevision> <ApplicationRevision>9</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion> <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust> <UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled> <BootstrapperEnabled>true</BootstrapperEnabled>
@ -106,6 +106,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="direction_down.ico" /> <Content Include="direction_down.ico" />
<None Include="Resources\help.png" />
<None Include="Resources\link.png" /> <None Include="Resources\link.png" />
<None Include="Resources\bug_add.png" /> <None Include="Resources\bug_add.png" />
<None Include="Resources\arrow_down.png" /> <None Include="Resources\arrow_down.png" />

View File

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

View File

@ -160,4 +160,7 @@
<data name="link" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="link" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\link.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\link.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="help" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\help.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root> </root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 B