mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2025-02-09 13:14:46 +01:00
Workaround save files containing duplicate filenames
This commit is contained in:
parent
de53449dac
commit
8032d3d46a
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user