153{
154 BundleMap res;
155
156
158 const auto rsrc_vendor_dir = (boost::filesystem::path(
resources_dir()) /
"profiles").make_preferred();
159
160
161
162 {
167 }
168
169
170
171 bool is_in_resources = false;
172 for (auto dir : { &vendor_dir, &rsrc_vendor_dir }) {
174
175 if (res.find(id) != res.end()) { continue; }
176
177 Bundle bundle;
178 if (bundle.load(*dir, id, is_in_resources))
179 res.emplace(id, std::move(bundle));
180 }
181
182 is_in_resources = true;
183 }
184
185 return res;
186}
#define PRESET_SYSTEM_DIR
Definition Preset.hpp:31
const std::string & data_dir()
Definition utils.cpp:365
const std::string & resources_dir()
Definition utils.cpp:296
bool is_vendor_installed(const std::string &vendor)
Definition utils.cpp:1973
std::set< std::string > vendor_names_in(const boost::filesystem::path &dir)
Definition utils.cpp:2005