+#include <msp/fs/dir.h>
#include <msp/fs/stat.h>
#include "resources.h"
set_default_texture_anisotropy(8);
set_srgb_conversion(true);
- if(FS::exists("data"))
+ FS::Path data_dir = "data";
+ if(FS::exists(data_dir))
{
- dir_source.add_directory("data");
+ dir_source.add_directory(data_dir);
add_source(dir_source);
+ for(const auto &c: FS::list_filtered(data_dir, "\\.mdc$"))
+ load(*this, (data_dir/c).str());
}
else
{