summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ContentManagers/GameContentManager.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-07-26 02:50:20 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-07-26 02:50:20 -0400
commit7900a84bd68d7c9450bba719ce925b61043875f3 (patch)
tree8c495b7fe1c29c0cb552dc657a7a8b61185be0bd /src/SMAPI/Framework/ContentManagers/GameContentManager.cs
parentee4c88f6016b6bc0d72e0d459f6b918bdd7728f3 (diff)
downloadSMAPI-7900a84bd68d7c9450bba719ce925b61043875f3.tar.gz
SMAPI-7900a84bd68d7c9450bba719ce925b61043875f3.tar.bz2
SMAPI-7900a84bd68d7c9450bba719ce925b61043875f3.zip
use ordinal comparison/sorting instead of invariant
Diffstat (limited to 'src/SMAPI/Framework/ContentManagers/GameContentManager.cs')
-rw-r--r--src/SMAPI/Framework/ContentManagers/GameContentManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI/Framework/ContentManagers/GameContentManager.cs b/src/SMAPI/Framework/ContentManagers/GameContentManager.cs
index eaaf0e6f..f20580e1 100644
--- a/src/SMAPI/Framework/ContentManagers/GameContentManager.cs
+++ b/src/SMAPI/Framework/ContentManagers/GameContentManager.cs
@@ -123,7 +123,7 @@ namespace StardewModdingAPI.Framework.ContentManagers
base.OnLocaleChanged();
// find assets for which a translatable version was loaded
- HashSet<string> removeAssetNames = new HashSet<string>(StringComparer.InvariantCultureIgnoreCase);
+ HashSet<string> removeAssetNames = new HashSet<string>(StringComparer.OrdinalIgnoreCase);
foreach (string key in this.IsLocalizableLookup.Where(p => p.Value).Select(p => p.Key))
removeAssetNames.Add(this.TryParseExplicitLanguageAssetKey(key, out string assetName, out _) ? assetName : key);
@@ -134,7 +134,7 @@ namespace StardewModdingAPI.Framework.ContentManagers
|| (this.TryParseExplicitLanguageAssetKey(key, out string assetName, out _) && removeAssetNames.Contains(assetName))
)
.Select(p => p.Key)
- .OrderBy(p => p, StringComparer.InvariantCultureIgnoreCase)
+ .OrderBy(p => p, StringComparer.OrdinalIgnoreCase)
.ToArray();
if (invalidated.Any())
this.Monitor.Log($"Invalidated {invalidated.Length} asset names: {string.Join(", ", invalidated)} for locale change.", LogLevel.Trace);