Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSpring114 committed Aug 28, 2024
2 parents 6e51056 + 7dd2746 commit 81d5f80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MinecraftLaunch/Components/Launcher/Launcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public async ValueTask<IGameProcessWatcher> 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);
}

Expand Down
3 changes: 3 additions & 0 deletions MinecraftLaunch/Extensions/DownloadEntryExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 81d5f80

Please sign in to comment.