mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Workaround save files containing duplicate filenames
This commit is contained in:
parent
de53449dac
commit
8032d3d46a
1 changed files with 7 additions and 1 deletions
|
@ -93,7 +93,13 @@ namespace libhac.Savefile
|
||||||
layout.JournalDataSizeB + layout.SizeReservedArea);
|
layout.JournalDataSizeB + layout.SizeReservedArea);
|
||||||
JournalStream = new JournalStream(journalData, journalMap, (int)Header.Journal.BlockSize);
|
JournalStream = new JournalStream(journalData, journalMap, (int)Header.Journal.BlockSize);
|
||||||
ReadFileInfo();
|
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…
Reference in a new issue