Skip to content

Commit

Permalink
Make "only show plugins with modgui" a runtime option
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Dec 30, 2023
1 parent a4418dc commit c81f520
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/utils_lilv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ static size_t HOMElen = strlen(HOME);

// configuration
static const bool kAllowRegularCV = getenv("MOD_UI_ALLOW_REGULAR_CV") != nullptr;
static const bool kOnlyShowPluginsWithMODGUI = getenv("MOD_UI_ONLY_SHOW_PLUGINS_WITH_MODGUI") != nullptr;

#define PluginInfo_Init { \
false, \
Expand Down Expand Up @@ -4289,10 +4290,8 @@ const PluginInfo_Mini* const* get_all_plugins(void)

if (const PluginInfo_Mini* const miniInfo = PLUGNFO_Mini[uri])
{
#if SHOW_ONLY_PLUGINS_WITH_MODGUI
if (miniInfo->gui.resourcesDirectory == nc)
if (kOnlyShowPluginsWithMODGUI && miniInfo->gui.resourcesDirectory == nc)
continue;
#endif
_get_plugs_mini_ret[curIndex++] = PLUGNFO_Mini[uri];
}
}
Expand Down

0 comments on commit c81f520

Please sign in to comment.