Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Emulator/SPD.File.Emulator/SpdEmulator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using FileEmulationFramework.Interfaces;
using System.Collections.Concurrent;
using FileEmulationFramework.Interfaces;
using FileEmulationFramework.Interfaces.Reference;
using FileEmulationFramework.Lib.IO;
using FileEmulationFramework.Lib.Utilities;
Expand All @@ -19,7 +20,7 @@ public class SpdEmulator : IEmulator

// Note: Handle->Stream exists because hashing IntPtr is easier; thus can resolve reads faster.
private readonly SpriteBuilderFactory _builderFactory;
private readonly Dictionary<string, Stream?> _pathToStream = new(StringComparer.OrdinalIgnoreCase);
private readonly ConcurrentDictionary<string, Stream?> _pathToStream = new(StringComparer.OrdinalIgnoreCase);
private readonly Logger _log;

public SpdEmulator(Logger log, bool dumpFiles)
Expand Down
Loading