Version file 1

This commit is contained in:
Natsumi
2022-10-04 06:03:41 +13:00
parent 6d48ef001d
commit bc88792000
3 changed files with 8 additions and 8 deletions

View File

@@ -92,7 +92,7 @@ namespace VRCX
};
}
public void DownloadFile(string url, int size, string AppVersion)
public void DownloadFile(string url, int size)
{
DownloadProgress = 0;
DownloadSize = size;
@@ -100,7 +100,7 @@ namespace VRCX
DownloadTempLocation = Path.Combine(Program.AppDataDirectory, "tempDownload.exe");
DownloadDestinationLocation = Path.Combine(Program.AppDataDirectory, "update.exe");
client = new WebClient();
client.Headers.Add("user-agent", AppVersion);
client.Headers.Add("user-agent", Program.Version);
client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(DownloadProgressCallback);
client.DownloadFileCompleted += new AsyncCompletedEventHandler(DownloadCompletedCallback);
client.DownloadFileAsync(new System.Uri(url), DownloadTempLocation);