mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 11:54:13 +08:00
(ArchiveFileSystem): check archive directory for duplicates.
This commit is contained in:
parent
a647b68fed
commit
489a00cf7b
@ -185,7 +185,8 @@ namespace GameRes
|
|||||||
m_dir = new Dictionary<string, Entry> (arc.Dir.Count, StringComparer.InvariantCultureIgnoreCase);
|
m_dir = new Dictionary<string, Entry> (arc.Dir.Count, StringComparer.InvariantCultureIgnoreCase);
|
||||||
foreach (var entry in arc.Dir)
|
foreach (var entry in arc.Dir)
|
||||||
{
|
{
|
||||||
m_dir.Add (entry.Name, entry);
|
if (!m_dir.ContainsKey (entry.Name))
|
||||||
|
m_dir.Add (entry.Name, entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user