MCPcopy Create free account
hub / github.com/VCVRack/Rack / getFundamentalPackagePath

Function getFundamentalPackagePath

src/plugin.cpp:252–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252static std::string getFundamentalPackagePath() {
253 for (const std::string& path : system::getEntries(asset::systemDir)) {
254 std::string filename = system::getFilename(path);
255 if (string::startsWith(filename, "Fundamental-") && string::endsWith(filename, APP_OS + "-" + APP_CPU + ".vcvplugin"))
256 return path;
257 }
258 return "";
259}
260
261////////////////////
262// public API

Callers 1

initFunction · 0.85

Calls 4

getEntriesFunction · 0.85
getFilenameFunction · 0.85
startsWithFunction · 0.85
endsWithFunction · 0.85

Tested by

no test coverage detected