A content pack is a sub-mod containing files your mod can read. These are installed just like a regular SMAPI mod, but don't do anything on their own. These must specify your mod in their <tt>manifest.json</tt>. See [[Modding:Content packs]] for more info about content packs.
−
−
SMAPI provides a method to get content packs loaded for your mod, and each content pack has an API you can use to read its files:
−
<source lang="c#">
−
foreach(IContentPack contentPack in this.Helper.GetContentPacks())