summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ContentCoordinator.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-16 13:41:37 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-04-16 13:41:37 -0400
commit1974324c43b093a360507546e8be12ad594b56f2 (patch)
tree7a0e257c438b7cc7c4f383a12d963e1e58c7242c /src/SMAPI/Framework/ContentCoordinator.cs
parente7fd95aafd044d7b8c95b93d0618324254db4eff (diff)
downloadSMAPI-1974324c43b093a360507546e8be12ad594b56f2.tar.gz
SMAPI-1974324c43b093a360507546e8be12ad594b56f2.tar.bz2
SMAPI-1974324c43b093a360507546e8be12ad594b56f2.zip
make EntryDll manifest field case-insensitive
Diffstat (limited to 'src/SMAPI/Framework/ContentCoordinator.cs')
-rw-r--r--src/SMAPI/Framework/ContentCoordinator.cs17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/SMAPI/Framework/ContentCoordinator.cs b/src/SMAPI/Framework/ContentCoordinator.cs
index 92452224..f83d4090 100644
--- a/src/SMAPI/Framework/ContentCoordinator.cs
+++ b/src/SMAPI/Framework/ContentCoordinator.cs
@@ -80,9 +80,6 @@ namespace StardewModdingAPI.Framework
/// <summary>The cached asset load/edit operations to apply, indexed by asset name.</summary>
private readonly TickCacheDictionary<IAssetName, AssetOperationGroup[]> AssetOperationsByKey = new();
- /// <summary>The previously created case-insensitive path caches by root path.</summary>
- private readonly Dictionary<string, CaseInsensitivePathCache> CaseInsensitivePathCaches = new(StringComparer.OrdinalIgnoreCase);
-
/*********
** Accessors
@@ -211,7 +208,7 @@ namespace StardewModdingAPI.Framework
jsonHelper: this.JsonHelper,
onDisposing: this.OnDisposing,
aggressiveMemoryOptimizations: this.AggressiveMemoryOptimizations,
- relativePathCache: this.GetCaseInsensitivePathCache(rootDirectory)
+ relativePathCache: CaseInsensitivePathCache.GetFor(rootDirectory)
);
this.ContentManagers.Add(manager);
return manager;
@@ -486,18 +483,6 @@ namespace StardewModdingAPI.Framework
});
}
- /// <summary>Get a dictionary of relative paths within a root path, for case-insensitive file lookups.</summary>
- /// <param name="rootPath">The root path to scan.</param>
- public CaseInsensitivePathCache GetCaseInsensitivePathCache(string rootPath)
- {
- rootPath = PathUtilities.NormalizePath(rootPath);
-
- if (!this.CaseInsensitivePathCaches.TryGetValue(rootPath, out CaseInsensitivePathCache? cache))
- this.CaseInsensitivePathCaches[rootPath] = cache = new CaseInsensitivePathCache(rootPath);
-
- return cache;
- }
-
/// <summary>Get the tilesheet ID order used by the unmodified version of a map asset.</summary>
/// <param name="assetName">The asset path relative to the loader root directory, not including the <c>.xnb</c> extension.</param>
public TilesheetReference[] GetVanillaTilesheetIds(string assetName)