Introduce blacklisted plugins to core
This commit is contained in:
committed by
Johannes Lorenz
parent
4fb66542a0
commit
7dd6a39366
@@ -116,6 +116,18 @@ void LmmsCore::destroy()
|
||||
delete ConfigManager::inst();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
bool LmmsCore::ignorePluginBlacklist()
|
||||
{
|
||||
const char* envVar = getenv("LMMS_IGNORE_BLACKLIST");
|
||||
return (envVar && *envVar);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
float LmmsCore::framesPerTick(sample_rate_t sampleRate)
|
||||
{
|
||||
return sampleRate * 60.0f * 4 /
|
||||
|
||||
@@ -54,6 +54,8 @@ const char *PluginIssue::msgFor(const PluginIssueType &it)
|
||||
return "required feature not supported";
|
||||
case badPortType:
|
||||
return "unsupported port type";
|
||||
case blacklisted:
|
||||
return "blacklisted plugin";
|
||||
case noIssue:
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user