mirror of
https://gitlab.com/nullmax17/PlombirLauncher.git
synced 2025-03-15 02:11:11 +03:00
33 lines
630 B
C#
33 lines
630 B
C#
using System.IO.Compression;
|
|
using System;
|
|
using System.IO;
|
|
using SharpCompress.Archives;
|
|
using SharpCompress.Common;
|
|
using SharpCompress.Readers;
|
|
using System.Diagnostics;
|
|
using CmlLib.Core;
|
|
|
|
namespace Plombir;
|
|
|
|
static public class Utils
|
|
{
|
|
|
|
public static async Task<List<string>> GetAllMcVersions()
|
|
{
|
|
return await Task.Run(async () =>
|
|
{
|
|
var ln = new MinecraftLauncher();
|
|
var result = new List<string>();
|
|
foreach (var x in await ln.GetAllVersionsAsync())
|
|
{
|
|
result.Add(x.Name);
|
|
}
|
|
return result;
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|