add installation without gui & pass arguments to gui

This commit is contained in:
2024-06-20 06:12:28 +02:00
parent f3b2d07117
commit 00de4d8708
4 changed files with 38 additions and 12 deletions

View File

@@ -8,7 +8,7 @@ public class ModpackConfig
public string UpdateUrl { get; set; }
public string InstallUrl { get; set; }
public static object LoadFromUrl(string url)
public static ModpackConfig LoadFromUrl(string url)
{
string result = new HttpClient().GetStringAsync(url).Result;
return JsonConvert.DeserializeObject<ModpackConfig>(result);