MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / UpdateConfigurations

Method UpdateConfigurations

vkconfig_core/executable_manager.cpp:378–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378bool ExecutableManager::UpdateConfigurations(std::vector<Path>& updated_executable_paths) {
379 int result = 0;
380
381 const Executable* active_executable = this->GetActiveExecutable();
382 for (std::size_t i = 0, n = this->data.size(); i < n; ++i) {
383 if (!this->data[i].enabled) {
384 continue;
385 }
386
387 if (this->data[i].GetActiveOptions()->working_folder.AbsolutePath() !=
388 active_executable->GetActiveOptions()->working_folder.AbsolutePath()) {
389 continue;
390 }
391
392 ++result;
393 this->data[i].configuration = active_executable->configuration;
394 updated_executable_paths.push_back(this->data[i].path);
395 }
396
397 return result > 1;
398}
399
400const Executable* ExecutableManager::GetActiveExecutable() const {
401 return const_cast<ExecutableManager*>(this)->GetActiveExecutable();

Callers

nothing calls this directly

Calls 3

GetActiveExecutableMethod · 0.95
AbsolutePathMethod · 0.80
GetActiveOptionsMethod · 0.80

Tested by

no test coverage detected