ToobAmp: correctlly map default file property for Toob Convolution Reverb.

This commit is contained in:
Robin E. R. Davies
2025-02-20 12:40:38 -05:00
parent 7f0ef66877
commit d182efbc93
28 changed files with 116 additions and 48 deletions
+27
View File
@@ -189,3 +189,30 @@ std::filesystem::path pipedal::MakeRelativePath(const std::filesystem::path &pat
return remander;
}
bool pipedal::IsSubdirectory(const std::filesystem::path &path, const std::filesystem::path &basePath)
{
auto iPath = path.begin();
for (auto i = basePath.begin(); i != basePath.end(); ++i)
{
if (iPath == path.end())
{
return false;
}
if ((*i) != (*iPath))
{
return false;
}
++iPath;
}
while (iPath != path.end())
{
if (iPath->string() == "..")
{
return false;
}
++iPath;
}
return true;
}