| 333 | void SetHomePath(const std::string& path) { ::VK_CURRENT_HOME_PATH = path; } |
| 334 | |
| 335 | static 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 | |
| 349 | static std::string VK_CURRENT_DOWNLOAD_PATH = GetDefaultHomeDir() + "/Releases"; |
| 350 | |