summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Framework/ContentManagers/ModContentManager.cs')
-rw-r--r--src/SMAPI/Framework/ContentManagers/ModContentManager.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/ContentManagers/ModContentManager.cs b/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
index 267146ad..90836fcf 100644
--- a/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
+++ b/src/SMAPI/Framework/ContentManagers/ModContentManager.cs
@@ -64,6 +64,16 @@ namespace StardewModdingAPI.Framework.ContentManagers
}
/// <inheritdoc />
+ public override bool DoesAssetExist(IAssetName assetName)
+ {
+ if (base.DoesAssetExist(assetName))
+ return true;
+
+ FileInfo file = this.GetModFile(assetName.Name);
+ return file.Exists;
+ }
+
+ /// <inheritdoc />
public override T Load<T>(string assetName)
{
return this.Load<T>(assetName, this.DefaultLanguage);