diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-08-01 00:51:27 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-08-01 00:51:27 -0400 |
commit | 3599daee459ee27bfe9374c675eb71d086fcfd81 (patch) | |
tree | 051773fc8cc5cfeceee0c7711da7cc4ae4c19301 /src/StardewModdingAPI/IContentHelper.cs | |
parent | 9b22f3e004b35f66d9be6af211f20fe126fae209 (diff) | |
download | SMAPI-3599daee459ee27bfe9374c675eb71d086fcfd81.tar.gz SMAPI-3599daee459ee27bfe9374c675eb71d086fcfd81.tar.bz2 SMAPI-3599daee459ee27bfe9374c675eb71d086fcfd81.zip |
remove support for invalidating mod assets per discussion (#335)
Diffstat (limited to 'src/StardewModdingAPI/IContentHelper.cs')
-rw-r--r-- | src/StardewModdingAPI/IContentHelper.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/StardewModdingAPI/IContentHelper.cs b/src/StardewModdingAPI/IContentHelper.cs index 9fe29e4d..beaaf5d4 100644 --- a/src/StardewModdingAPI/IContentHelper.cs +++ b/src/StardewModdingAPI/IContentHelper.cs @@ -23,11 +23,10 @@ namespace StardewModdingAPI #if !SMAPI_1_x /// <summary>Remove an asset from the content cache so it's reloaded on the next request. This will reload core game assets if needed, but references to the former asset will still show the previous content.</summary> - /// <param name="key">The asset key to fetch (if the <paramref name="source"/> is <see cref="ContentSource.GameContent"/>), or the local path to a content file relative to the mod folder.</param> - /// <param name="source">Where to search for a matching content asset.</param> + /// <param name="key">The asset key to invalidate in the content folder.</param> /// <exception cref="ArgumentException">The <paramref name="key"/> is empty or contains invalid characters.</exception> /// <returns>Returns whether the given asset key was cached.</returns> - bool InvalidateCache(string key, ContentSource source = ContentSource.ModFolder); + bool InvalidateCache(string key); /// <summary>Remove all assets of the given type from the cache so they're reloaded on the next request. <b>This can be a very expensive operation and should only be used in very specific cases.</b> This will reload core game assets if needed, but references to the former assets will still show the previous content.</summary> /// <typeparam name="T">The asset type to remove from the cache.</typeparam> |