Skip to content

Commit

Permalink
Allow plugins to provide their own modguis
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Dec 29, 2022
1 parent 8c2d543 commit 55ab560
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions distrho/src/DistrhoPluginLV2export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@
# define DISTRHO_PLUGIN_USES_MODGUI 0
#endif

#ifndef DISTRHO_PLUGIN_USES_CUSTOM_MODGUI
# define DISTRHO_PLUGIN_USES_CUSTOM_MODGUI 0
#endif

#if DISTRHO_PLUGIN_HAS_EMBED_UI
# if DISTRHO_OS_HAIKU
# define DISTRHO_LV2_UI_TYPE "BeUI"
Expand Down Expand Up @@ -1218,7 +1222,7 @@ void lv2_generate_ttl(const char* const basename)
std::cout << " done!" << std::endl;
}

#if DISTRHO_PLUGIN_USES_MODGUI
#if DISTRHO_PLUGIN_USES_MODGUI && !DISTRHO_PLUGIN_USES_CUSTOM_MODGUI
{
std::cout << "Writing modgui.ttl..."; std::cout.flush();
std::fstream modguiFile("modgui.ttl", std::ios::out);
Expand Down Expand Up @@ -1505,7 +1509,7 @@ void lv2_generate_ttl(const char* const basename)
stylesheetFile.close();
std::cout << " done!" << std::endl;
}
#endif
#endif // DISTRHO_PLUGIN_USES_MODGUI && !DISTRHO_PLUGIN_USES_CUSTOM_MODGUI

// ---------------------------------------------

Expand Down

0 comments on commit 55ab560

Please sign in to comment.