A couple proxy changes.

This commit is contained in:
givememystuffplease 2009-08-19 16:40:43 +00:00
parent 4555543208
commit 8702d800ee
3 changed files with 18 additions and 3 deletions

View File

@ -957,6 +957,7 @@
this.saveaswadbox.TabIndex = 43; this.saveaswadbox.TabIndex = 43;
this.saveaswadbox.Text = "SaveAs"; this.saveaswadbox.Text = "SaveAs";
this.saveaswadbox.UseVisualStyleBackColor = true; this.saveaswadbox.UseVisualStyleBackColor = true;
this.saveaswadbox.Paint += new System.Windows.Forms.PaintEventHandler(this.saveaswadbox_Paint);
// //
// deletecontentsbox // deletecontentsbox
// //

View File

@ -18,7 +18,7 @@ namespace NUS_Downloader
const string NUSURL = "http://nus.cdn.shop.wii.com/ccs/download/"; const string NUSURL = "http://nus.cdn.shop.wii.com/ccs/download/";
const string DSiNUSURL = "http://nus.cdn.t.shop.nintendowifi.net/ccs/download/"; const string DSiNUSURL = "http://nus.cdn.t.shop.nintendowifi.net/ccs/download/";
// TODO: Always remember to change version! // TODO: Always remember to change version!
string version = "v1.3"; string version = "v1.3 Beta";
WebClient generalWC = new WebClient(); WebClient generalWC = new WebClient();
static RijndaelManaged rijndaelCipher; static RijndaelManaged rijndaelCipher;
static bool dsidecrypt = false; static bool dsidecrypt = false;
@ -765,6 +765,10 @@ namespace NUS_Downloader
// Set UserAgent to Wii value // Set UserAgent to Wii value
generalWC.Headers.Add("User-Agent", "wii libnup/1.0"); generalWC.Headers.Add("User-Agent", "wii libnup/1.0");
// Proxy
generalWC.Proxy = WebRequest.GetSystemWebProxy();
generalWC.UseDefaultCredentials = true;
// Get placement directory early... // Get placement directory early...
string titledirectory; string titledirectory;
if (titleversion.Text == "") if (titleversion.Text == "")
@ -3649,5 +3653,15 @@ namespace NUS_Downloader
saveaswadbox.Enabled = packbox.Enabled; saveaswadbox.Enabled = packbox.Enabled;
deletecontentsbox.Enabled = packbox.Enabled; deletecontentsbox.Enabled = packbox.Enabled;
} }
private void saveaswadbox_Paint(object sender, PaintEventArgs e)
{
//e.Graphics.
/*Rectangle rect = new Rectangle(0, 0, 16, 16);
if (saveaswadbox.Checked)
e.Graphics.DrawImageUnscaledAndClipped(green, rect);
else
e.Graphics.DrawImageUnscaled(orange, -7, -5); */
}
} }
} }

View File

@ -16,7 +16,7 @@
<IsWebBootstrapper>false</IsWebBootstrapper> <IsWebBootstrapper>false</IsWebBootstrapper>
<ManifestCertificateThumbprint>5828AACDBD1A48E3768B7E0465E90D0E96E2BE4C</ManifestCertificateThumbprint> <ManifestCertificateThumbprint>5828AACDBD1A48E3768B7E0465E90D0E96E2BE4C</ManifestCertificateThumbprint>
<ManifestKeyFile>NUS Downloader_TemporaryKey.pfx</ManifestKeyFile> <ManifestKeyFile>NUS Downloader_TemporaryKey.pfx</ManifestKeyFile>
<GenerateManifests>false</GenerateManifests> <GenerateManifests>true</GenerateManifests>
<SignManifests>true</SignManifests> <SignManifests>true</SignManifests>
<TargetZone>LocalIntranet</TargetZone> <TargetZone>LocalIntranet</TargetZone>
<ApplicationManifest>Properties\app.manifest</ApplicationManifest> <ApplicationManifest>Properties\app.manifest</ApplicationManifest>
@ -30,7 +30,7 @@
<UpdatePeriodically>false</UpdatePeriodically> <UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired> <UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions> <MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>7</ApplicationRevision> <ApplicationRevision>8</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>