------------------------------------------------------------------------
| 433 | |
| 434 | //------------------------------------------------------------------------ |
| 435 | Module::PathList Module::getModulePaths () |
| 436 | { |
| 437 | // find plug-ins located in common/VST3 |
| 438 | PathList list; |
| 439 | if (auto knownFolder = getKnownFolder (FOLDERID_ProgramFilesCommon)) |
| 440 | { |
| 441 | filesystem::path p (*knownFolder); |
| 442 | p.append ("VST3"); |
| 443 | findModules (p, list); |
| 444 | } |
| 445 | |
| 446 | // find plug-ins located in VST3 (application folder) |
| 447 | WCHAR modulePath[MAX_PATH + 1]; |
| 448 | GetModuleFileNameW (nullptr, modulePath, MAX_PATH); |
| 449 | auto appPath = ConvertToUTF8 (modulePath); |
| 450 | filesystem::path path (appPath); |
| 451 | path = path.parent_path (); |
| 452 | path = path.append ("VST3"); |
| 453 | findModules (path, list); |
| 454 | |
| 455 | return list; |
| 456 | } |
| 457 | |
| 458 | //------------------------------------------------------------------------ |
| 459 | Module::SnapshotList Module::getSnapshots (const std::string& modulePath) |
nothing calls this directly
no test coverage detected