mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Ignore key name case when parsing a key file
This commit is contained in:
parent
ba2a923296
commit
0c4aad32a0
1 changed files with 3 additions and 3 deletions
|
@ -688,12 +688,12 @@ namespace LibHac
|
|||
|
||||
public static Dictionary<string, KeyValue> CreateCommonKeyDictionary()
|
||||
{
|
||||
return CreateCommonKeyList().ToDictionary(k => k.Name, k => k);
|
||||
return CreateCommonKeyList().ToDictionary(k => k.Name, k => k, StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
public static Dictionary<string, KeyValue> CreateUniqueKeyDictionary()
|
||||
{
|
||||
return CreateUniqueKeyList().ToDictionary(k => k.Name, k => k);
|
||||
return CreateUniqueKeyList().ToDictionary(k => k.Name, k => k, StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
public static Dictionary<string, KeyValue> CreateFullKeyDictionary()
|
||||
|
@ -701,7 +701,7 @@ namespace LibHac
|
|||
List<KeyValue> commonKeys = CreateCommonKeyList();
|
||||
List<KeyValue> uniqueKeys = CreateUniqueKeyList();
|
||||
|
||||
return uniqueKeys.Concat(commonKeys).ToDictionary(k => k.Name, k => k);
|
||||
return uniqueKeys.Concat(commonKeys).ToDictionary(k => k.Name, k => k, StringComparer.OrdinalIgnoreCase);
|
||||
}
|
||||
|
||||
private static List<KeyValue> CreateCommonKeyList()
|
||||
|
|
Loading…
Reference in a new issue