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 <falktx@falktx.com>
  • Loading branch information
falkTX committed Dec 29, 2022
1 parent 8c2d543 commit e86463a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions distrho/src/DistrhoPluginLV2export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
# define DISTRHO_PLUGIN_USES_MODGUI 0
#endif

#ifndef DISTRHO_PLUGIN_USES_CUSTOM_MODGUI
# error DISTRHO_PLUGIN_USES_CUSTOM_MODGUI undef
// # 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 +1223,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 +1510,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 e86463a

Please sign in to comment.