| 199 | } |
| 200 | |
| 201 | std::vector<Path> LoadRegistrySoftwareLayers(const char *path, LayerType type) { |
| 202 | std::vector<Path> result; |
| 203 | QSettings settings(path, QSettings::NativeFormat); |
| 204 | const QStringList &files = settings.allKeys(); |
| 205 | |
| 206 | for (int i = 0, n = files.size(); i < n; ++i) { |
| 207 | Path path(files[i].toStdString()); |
| 208 | |
| 209 | Path manifest_path = path.IsFile() ? path.AbsoluteDir() : path.AbsolutePath(); |
| 210 | |
| 211 | if (!manifest_path.Exists()) { |
| 212 | continue; |
| 213 | } |
| 214 | |
| 215 | if (::Found(result, manifest_path)) { |
| 216 | continue; |
| 217 | } |
| 218 | |
| 219 | result.push_back(manifest_path); |
| 220 | } |
| 221 | |
| 222 | return result; |
| 223 | } |
| 224 | |
| 225 | #endif // VKC_ENV == VKC_ENV_WIN32 |
no test coverage detected