Workaround save files containing duplicate filenames

This commit is contained in:
Alex Barney 2018-08-22 09:57:47 -05:00
parent de53449dac
commit 8032d3d46a

View file

@ -93,7 +93,13 @@ namespace libhac.Savefile
layout.JournalDataSizeB + layout.SizeReservedArea);
JournalStream = new JournalStream(journalData, journalMap, (int)Header.Journal.BlockSize);
ReadFileInfo();
FileDict = Files.ToDictionary(x => x.FullPath, x => x);
Dictionary<string, FileEntry> dictionary = new Dictionary<string, FileEntry>();
foreach (FileEntry entry in Files)
{
dictionary[entry.FullPath] = entry;
}
FileDict = dictionary;
}
}