So I'm building a game with MonoGame in VS. I'm using the Content Pipeline from MonoGame (that generates XNB files).
The thing is that my game is expansible (it is a rhytim game that user can download songs/charts). So I had to support "plug-in" XNB files.
So I already made my Custom Importer / Reader / Writer for my custom types, but I cannot find a way to scan the content folder to find which xnb's are available. For example if the user adds a Song1.xnb at Content folder, how will I know (programatically) that the file is there?
I couldn't find any showFiles or scanContent in ContentManager to list all available files. How can I find which files are in my content folder in a Cross-Platform way?
Example of my structure:
Content
- Songs
- Song0
- 0.xnb
- 1.xnb
- Song0.xnb
- Song1
- 0.xnb
- Song0.xnb
So my song folder always have a {Folder}.xnb file that have the structure for the songs (and also a reference for X.xnb (0,1,2 ...)). But I cannot find what folders does exists on the Songs folder so I can call Load<Music>("Songs\\{SongFolder}\\{SongFolder}.xnb")
Thanks!