Point TransitMii to GitHub

This commit is contained in:
Andreas Bielawski 2015-12-13 22:42:40 +01:00
parent b70eba5002
commit e95fa87389
2 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,7 @@ namespace TransmitMii
{ {
public partial class TransmitMii_Main : Form public partial class TransmitMii_Main : Form
{ {
const string version = "1.3"; //Hint for myself: Never use a char in the Version (UpdateCheck)! const string version = "1.3.1"; //Hint for myself: Never use a char in the Version (UpdateCheck)!
private bool IsRunning = false; private bool IsRunning = false;
private string fileName; private string fileName;
private string statusText; private string statusText;
@ -103,7 +103,7 @@ namespace TransmitMii
try try
{ {
WebClient GetVersion = new WebClient(); WebClient GetVersion = new WebClient();
string NewVersion = GetVersion.DownloadString("http://customizemii.googlecode.com/svn/transmitmii-version.txt"); string NewVersion = GetVersion.DownloadString("https://raw.githubusercontent.com/Brawl345/customizemii/master/transmitmii-version.txt");
int newVersion = Convert.ToInt32(NewVersion.Replace(".", string.Empty).Length == 2 ? (NewVersion.Replace(".", string.Empty) + "0") : NewVersion.Replace(".", string.Empty)); int newVersion = Convert.ToInt32(NewVersion.Replace(".", string.Empty).Length == 2 ? (NewVersion.Replace(".", string.Empty) + "0") : NewVersion.Replace(".", string.Empty));
int thisVersion = Convert.ToInt32(version.Replace(".", string.Empty).Length == 2 ? (version.Replace(".", string.Empty) + "0") : version.Replace(".", string.Empty)); int thisVersion = Convert.ToInt32(version.Replace(".", string.Empty).Length == 2 ? (version.Replace(".", string.Empty) + "0") : version.Replace(".", string.Empty));
@ -115,7 +115,7 @@ namespace TransmitMii
"Update availabe", MessageBoxButtons.YesNo, MessageBoxIcon.Information) == "Update availabe", MessageBoxButtons.YesNo, MessageBoxIcon.Information) ==
DialogResult.Yes) DialogResult.Yes)
{ {
Process.Start("http://code.google.com/p/customizemii/downloads/list"); Process.Start("https://github.com/Brawl345/customizemii/releases");
} }
} }
} }

View File

@ -1 +1 @@
1.3 1.3.1