MCPcopy Create free account
hub / github.com/audacity/audacity / getModulePaths

Method getModulePaths

libraries/lib-vst3/module_win32.cpp:435–456  ·  view source on GitHub ↗

------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

433
434//------------------------------------------------------------------------
435Module::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//------------------------------------------------------------------------
459Module::SnapshotList Module::getSnapshots (const std::string& modulePath)

Callers

nothing calls this directly

Calls 4

getKnownFolderFunction · 0.85
ConvertToUTF8Function · 0.85
findModulesFunction · 0.70
appendMethod · 0.45

Tested by

no test coverage detected