Skip to content

Commit

Permalink
[CBMFS] Handle duplicate filenames.
Browse files Browse the repository at this point in the history
  • Loading branch information
claunia committed Apr 22, 2024
1 parent 2b4a337 commit 0003093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Aaru.Filesystems/CBM/Super.cs
Original file line number Diff line number Diff line change
Expand Up @@ -289,14 +289,14 @@ public ErrorNumber Mount(IMediaImage imagePlugin, Partition parti
if((dirEntry.fileType & 7) == 2)
attributes |= FileAttributes.Executable;

_cache.Add(name, new CachedFile
_cache[name] = new CachedFile
{
attributes = attributes,
length = (ulong)data.Length,
data = data.ToArray(),
blocks = dirEntry.blocks,
id = fileId++
});
};

offset += 32;
}
Expand Down

0 comments on commit 0003093

Please sign in to comment.