137 if (boost::filesystem::exists(
dir) && boost::filesystem::is_directory(
dir)) {
138 boost::filesystem::directory_iterator iter(
dir);
139 boost::filesystem::directory_iterator
end;
140 while (iter !=
end) {
141 boost::filesystem::path p = iter->path();
143 loadLibrary(p.string());
147 writelog(
LOG_WARNING,
"MaterialsDB: '{0}' does not exist or is not a directory. Cannot load default materials",
dir);