Skip to content

Commit e86463a

Browse files
committed
Allow plugins to provide their own modguis
Signed-off-by: falkTX <[email protected]>
1 parent 8c2d543 commit e86463a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

distrho/src/DistrhoPluginLV2export.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@
6969
# define DISTRHO_PLUGIN_USES_MODGUI 0
7070
#endif
7171

72+
#ifndef DISTRHO_PLUGIN_USES_CUSTOM_MODGUI
73+
# error DISTRHO_PLUGIN_USES_CUSTOM_MODGUI undef
74+
// # define DISTRHO_PLUGIN_USES_CUSTOM_MODGUI 0
75+
#endif
76+
7277
#if DISTRHO_PLUGIN_HAS_EMBED_UI
7378
# if DISTRHO_OS_HAIKU
7479
# define DISTRHO_LV2_UI_TYPE "BeUI"
@@ -1218,7 +1223,7 @@ void lv2_generate_ttl(const char* const basename)
12181223
std::cout << " done!" << std::endl;
12191224
}
12201225

1221-
#if DISTRHO_PLUGIN_USES_MODGUI
1226+
#if DISTRHO_PLUGIN_USES_MODGUI && !DISTRHO_PLUGIN_USES_CUSTOM_MODGUI
12221227
{
12231228
std::cout << "Writing modgui.ttl..."; std::cout.flush();
12241229
std::fstream modguiFile("modgui.ttl", std::ios::out);
@@ -1505,7 +1510,7 @@ void lv2_generate_ttl(const char* const basename)
15051510
stylesheetFile.close();
15061511
std::cout << " done!" << std::endl;
15071512
}
1508-
#endif
1513+
#endif // DISTRHO_PLUGIN_USES_MODGUI && !DISTRHO_PLUGIN_USES_CUSTOM_MODGUI
15091514

15101515
// ---------------------------------------------
15111516

0 commit comments

Comments
 (0)