MCPcopy Create free account
hub / github.com/OpenMW/openmw / filterOutNonExistingPaths

Method filterOutNonExistingPaths

components/files/configurationmanager.cpp:357–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355 }
356
357 void ConfigurationManager::filterOutNonExistingPaths(Files::PathContainer& dataDirs) const
358 {
359 dataDirs.erase(std::remove_if(dataDirs.begin(), dataDirs.end(),
360 [this](const std::filesystem::path& p) {
361 bool exists = std::filesystem::is_directory(p);
362 if (!exists && !mSilent)
363 Log(Debug::Warning) << "No such dir: " << p;
364 return !exists;
365 }),
366 dataDirs.end());
367 }
368
369 std::optional<bpo::variables_map> ConfigurationManager::loadConfig(
370 const std::filesystem::path& path, const bpo::options_description& description) const

Callers 5

readConfigMethod · 0.80
runNavMeshToolFunction · 0.80
runBulletObjectToolFunction · 0.80
readContentFilesMethod · 0.80
parseOptionsFunction · 0.80

Calls 4

LogClass · 0.85
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 1

readContentFilesMethod · 0.64