TooB NAM load errors (Resource directory handling)
This commit is contained in:
@@ -206,10 +206,6 @@ UiFileProperty::UiFileProperty(PluginHost *pHost, const LilvNode *node, const st
|
|||||||
{
|
{
|
||||||
this->resourceDirectory_ = resourceDirectory.AsString();
|
this->resourceDirectory_ = resourceDirectory.AsString();
|
||||||
}
|
}
|
||||||
if (this->resourceDirectory_.empty())
|
|
||||||
{
|
|
||||||
this->resourceDirectory_ = "default";
|
|
||||||
}
|
|
||||||
this->fileTypes_ = UiFileType::GetArray(pHost, node, pHost->lilvUris->pipedalUI__fileTypes);
|
this->fileTypes_ = UiFileType::GetArray(pHost, node, pHost->lilvUris->pipedalUI__fileTypes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1457,6 +1457,7 @@ void PluginHost::CheckForResourceInitialization(const std::string &pluginUri,con
|
|||||||
resourceInfoSet.insert(ResourceInfo(fileProperty->directory(),fileProperty->resourceDirectory()));
|
resourceInfoSet.insert(ResourceInfo(fileProperty->directory(),fileProperty->resourceDirectory()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
try {
|
||||||
for (const ResourceInfo&resourceInfo: resourceInfoSet)
|
for (const ResourceInfo&resourceInfo: resourceInfoSet)
|
||||||
{
|
{
|
||||||
std::filesystem::path sourcePath = bundlePath / resourceInfo.resourceDirectory;
|
std::filesystem::path sourcePath = bundlePath / resourceInfo.resourceDirectory;
|
||||||
@@ -1467,6 +1468,10 @@ void PluginHost::CheckForResourceInitialization(const std::string &pluginUri,con
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
} catch (const std::exception &e)
|
||||||
|
{
|
||||||
|
Lv2Log::error(SS("CheckForResourceInitialization: " << e.what()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user