Ignore case on Challenge stages.

This commit is contained in:
MaikyM
2019-12-18 09:52:02 -06:00
parent 46f3b40fbc
commit 722313f28b

View File

@@ -292,7 +292,7 @@ namespace FModel.Methods.Assets.IconCreator.ChallengeID
}
//this will catch the full path if asset exists to be able to grab his PakReader and List<FPakEntry>
string primaryAssetNameFullPath = AssetEntries.AssetEntriesDict.Where(x => x.Key.Contains("/" + primaryAssetName)).Select(d => d.Key).FirstOrDefault();
string primaryAssetNameFullPath = AssetEntries.AssetEntriesDict.Where(x => x.Key.ToLowerInvariant().Contains("/" + primaryAssetName.ToLowerInvariant())).Select(d => d.Key).FirstOrDefault();
if (!string.IsNullOrEmpty(primaryAssetNameFullPath))
{
// Prevents loops