diff --git a/src/SMAPI/Framework/ContentManagers/GameContentManager.cs b/src/SMAPI/Framework/ContentManagers/GameContentManager.cs index e7fb0c5f..9b8125ad 100644 --- a/src/SMAPI/Framework/ContentManagers/GameContentManager.cs +++ b/src/SMAPI/Framework/ContentManagers/GameContentManager.cs @@ -68,11 +68,15 @@ namespace StardewModdingAPI.Framework.ContentManagers if (base.DoesAssetExist(assetName)) return true; + // vanilla asset + if (File.Exists(Path.Combine(this.RootDirectory, $"{assetName.Name}.xnb"))) + return true; + // managed asset if (this.Coordinator.TryParseManagedAssetKey(assetName.Name, out string contentManagerID, out IAssetName relativePath)) return this.Coordinator.DoesManagedAssetExist(contentManagerID, relativePath); - // else check for loaders + // custom asset from a loader string locale = this.GetLocale(); IAssetInfo info = new AssetInfo(locale, assetName, typeof(object), this.AssertAndNormalizeAssetName); ModLinked[] loaders = this.GetLoaders(info).ToArray();