Pathoschild / SMAPI

The modding API for Stardew Valley.
https://smapi.io/
GNU Lesser General Public License v3.0
1.71k stars 258 forks source link

Expose `DoesAssetExist<T>(IAssetName)` to Mods #947

Closed KhloeLeclair closed 1 day ago

KhloeLeclair commented 2 months ago

This adds DoesAssetExist<T>(IAssetName) to IGameContentHelper and IModContentHelper.

The method exists on the wrapped IContentManager instances, so we just need to pass it along. Super simple work.

Pathoschild commented 1 day ago

Merged into develop for the upcoming SMAPI 4.1.0. Thanks for the help!