-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
38 lines (33 loc) · 1.45 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Net;
using System.Runtime.InteropServices.ComTypes;
using System.Text.RegularExpressions;
namespace AsguhoClientInstaller {
internal class Program {
static void Main(string[] args) {
Console.WriteLine("Setting up AsguhoClient!");
MutiMCHandler multiMCHandler = new MutiMCHandler();
InstanceHandler instanceHandler = new InstanceHandler("AsguhoClient");
FolderUtil.deleteTempFolder();
Console.WriteLine("press any key to exit");
Console.ReadKey();
}
//static void downloadFileAsync(string url, string filePath) {
// HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
// request.Method = "GET";
// request.ContentType = "application/x-www-form-urlencoded";
// request.BeginGetResponse(new AsyncCallback(delegate (IAsyncResult ar) {
// HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(ar);
// using (Stream stream = response.GetResponseStream()) {
// Console.WriteLine("downloading from: " + url);
// using (FileStream fileStream = new FileStream(filePath, FileMode.Create)) {
// stream.CopyTo(fileStream);
// }
// }
// }), null);
//}
}
}