Skip to content

Commit

Permalink
fix shader pack resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
laolarou726 committed Sep 20, 2024
1 parent 67e7448 commit 7b52d2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,8 @@ public static async IAsyncEnumerable<GameResourcePackResolvedInfo> ResolveResour
static GameShaderPackResolvedInfo? ResolveShaderPackFile(string file)
{
if (!ArchiveHelper.TryOpen(file, out var archive)) return null;
if (archive == null) return null;
if (!archive.Entries.Any(e =>
Path.GetFileName(e.Key?.TrimEnd(Path.DirectorySeparatorChar))
Path.GetFileName(e.Key?.TrimEnd('/'))
?.Equals("shaders", StringComparison.OrdinalIgnoreCase) ?? false))
return null;

Expand Down
2 changes: 1 addition & 1 deletion ProjBobcat/ProjBobcat/ProjBobcat.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ resolved the issue that LaunchWrapper may not return the correct exit code
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.ObjectPool" Version="8.0.8" />
<PackageReference Include="SharpCompress">
<Version>0.37.2</Version>
<Version>0.38.0</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit 7b52d2c

Please sign in to comment.