diff --git a/MinecraftLaunch/Components/Launcher/Launcher.cs b/MinecraftLaunch/Components/Launcher/Launcher.cs index 3445a98..8b1b9cd 100644 --- a/MinecraftLaunch/Components/Launcher/Launcher.cs +++ b/MinecraftLaunch/Components/Launcher/Launcher.cs @@ -46,7 +46,7 @@ public async ValueTask LaunchAsync(string id) { var process = CreateProcess(arguments, versionPath); LibrariesResolver librariesResolver = new(gameEntry); - await Launcher.ExtractNatives(versionPath, librariesResolver); + await ExtractNatives(versionPath, librariesResolver); return new GameProcessWatcher(process, arguments); } diff --git a/MinecraftLaunch/Extensions/DownloadEntryExtension.cs b/MinecraftLaunch/Extensions/DownloadEntryExtension.cs index 5c89d7d..d7c7b84 100644 --- a/MinecraftLaunch/Extensions/DownloadEntryExtension.cs +++ b/MinecraftLaunch/Extensions/DownloadEntryExtension.cs @@ -22,6 +22,9 @@ public static bool Verify(this IDownloadEntry entry) { if(!File.Exists(entry.Path)) return false; + if (entry.Checksum == null) + return true; + using var sha1Provider = SHA1.Create(); using var fileStream = File.OpenRead(entry.Path); byte[] sha1Bytes = sha1Provider.ComputeHash(fileStream);