Skip to content

Commit

Permalink
fix bugs on net9
Browse files Browse the repository at this point in the history
  • Loading branch information
Tartilla-TAIGO committed Nov 18, 2024
1 parent e08fd19 commit 7d55838
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public override async IAsyncEnumerable<IGameResource> ResolveResourceAsync()
if (CheckLocalFiles && File.Exists(filePath))
{
await using var fs = File.Open(filePath, FileMode.Open, FileAccess.Read, FileShare.Read);
var computedHash = (await SHA1.HashDataAsync(fs)).BytesToString();
var computedHash = Convert.ToHexString(await SHA1.HashDataAsync(fs));

if (computedHash.Equals(storage.Sha1, StringComparison.OrdinalIgnoreCase))
continue;
Expand All @@ -70,7 +70,7 @@ public override async IAsyncEnumerable<IGameResource> ResolveResourceAsync()
{
FileName = fileName,
Path = filePath.Replace($"/{fileName}", string.Empty),
Type = ResourceType.Other,
Type = ResourceType.LibraryOrNative,
Title = $"Java Asset {fileName}",
FileSize = storage.Size,
Url = storage.Url,
Expand Down

0 comments on commit 7d55838

Please sign in to comment.