bjornbytes / cargo

LÖVE asset manager
MIT License
163 stars 11 forks source link

Support ignoring file types by setting loader to false; #5

Closed bjornbytes closed 9 years ago

bjornbytes commented 9 years ago

In the event that there are assets with the same name but different extensions (e.g. image.png and image.dds), it can be helpful to ignore certain file extensions when loading assets with cargo. This change allows you to specify a loader of false to prevent cargo from loading files of a given type.

This isn't a perfect solution, as it does not allow for ignoring assets based on their name or their path. A table of patterns similar to the processors option could be a future improvement.

Fixes #4.