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

Function GetHomeDir

vkconfig_core/path.cpp:335–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333void SetHomePath(const std::string& path) { ::VK_CURRENT_HOME_PATH = path; }
334
335static const std::string GetHomeDir() {
336 std::string absolute_path = qgetenv("VK_HOME").toStdString();
337
338 if (absolute_path.empty()) {
339 absolute_path = qgetenv("VULKAN_HOME").toStdString();
340 }
341
342 if (absolute_path.empty()) { // Default path
343 absolute_path = VK_CURRENT_HOME_PATH;
344 }
345
346 return absolute_path;
347}
348
349static std::string VK_CURRENT_DOWNLOAD_PATH = GetDefaultHomeDir() + "/Releases";
350

Callers 1

PathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected