Skip to content

Commit

Permalink
fix: crash on unix when found multiple casings of the same non-textur…
Browse files Browse the repository at this point in the history
…e file
  • Loading branch information
ovska committed Oct 24, 2024
1 parent 9308159 commit 70e48f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Pack3r.Core/IO/AssetSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ private Dictionary<QString, IAsset> InitializeAssets()

if (texExt == TextureExtension.Other)
{
dict.Add(key, asset);
dict[key] = asset; // overwrite if same file is here multiple times
// TODO: pick the lowercase one? or check edit timestamp and pick newest?
}
else if (texExt == TextureExtension.Jpg)
{
Expand Down

0 comments on commit 70e48f6

Please sign in to comment.