File tree 3 files changed +29
-13
lines changed
3 files changed +29
-13
lines changed Original file line number Diff line number Diff line change @@ -79,10 +79,14 @@ Plugin::Descriptor Q_DECL_EXPORT vestige_plugin_descriptor =
79
79
0x0100 ,
80
80
Plugin::Type::Instrument,
81
81
new PluginPixmapLoader ( " logo" ),
82
- #ifdef LMMS_BUILD_LINUX
83
- " dll,so" ,
84
- #else
82
+ #if defined(LMMS_BUILD_WIN32)
85
83
" dll" ,
84
+ #elif defined(LMMS_BUILD_LINUX)
85
+ # if defined(LMMS_HAVE_VST_32) || defined(LMMS_HAVE_VST_64)
86
+ " dll,so" ,
87
+ # else
88
+ " so" ,
89
+ # endif
86
90
#endif
87
91
nullptr ,
88
92
} ;
@@ -669,13 +673,17 @@ void VestigeInstrumentView::openPlugin()
669
673
670
674
// set filters
671
675
QStringList types;
672
- types << tr ( " DLL-files (*.dll)" )
673
- << tr ( " EXE-files (*.exe)" )
674
- #ifdef LMMS_BUILD_LINUX
675
- << tr ( " SO-files (*.so)" )
676
+ #if defined(LMMS_BUILD_WIN32)
677
+ types << tr (" VST2 files (*.dll)" );
678
+ #elif defined(LMMS_BUILD_LINUX)
679
+ # if defined(LMMS_HAVE_VST_32) || defined(LMMS_HAVE_VST_64)
680
+ types << tr (" All VST files (*.dll *.so)" )
681
+ << tr (" Windows VST2 files (*.dll)" );
682
+ # endif
683
+ types << tr (" LinuxVST files (*.so)" );
676
684
#endif
677
- ;
678
- ofd.setNameFilters ( types );
685
+
686
+ ofd.setNameFilters (types);
679
687
680
688
if ( m_vi->m_pluginDLL != " " )
681
689
{
Original file line number Diff line number Diff line change @@ -1222,15 +1222,21 @@ void FileItem::determineFileType()
1222
1222
m_type = FileType::Midi;
1223
1223
m_handling = FileHandling::ImportAsProject;
1224
1224
}
1225
- else if ( ext == " dll"
1226
- #ifdef LMMS_BUILD_LINUX
1227
- || ext == " so"
1228
- #endif
1225
+ #ifdef LMMS_HAVE_VST
1226
+ else if (
1227
+ # if defined(LMMS_BUILD_LINUX)
1228
+ ext == " so" ||
1229
+ # endif
1230
+ # if defined(LMMS_HAVE_VST_32) || defined(LMMS_HAVE_VST_64)
1231
+ ext == " dll" ||
1232
+ # endif
1233
+ false
1229
1234
)
1230
1235
{
1231
1236
m_type = FileType::VstPlugin;
1232
1237
m_handling = FileHandling::LoadByPlugin;
1233
1238
}
1239
+ #endif
1234
1240
else if ( ext == " lv2" )
1235
1241
{
1236
1242
m_type = FileType::Preset;
Original file line number Diff line number Diff line change 33
33
#cmakedefine LMMS_HAVE_SDL
34
34
#cmakedefine LMMS_HAVE_STK
35
35
#cmakedefine LMMS_HAVE_VST
36
+ #cmakedefine LMMS_HAVE_VST_32
37
+ #cmakedefine LMMS_HAVE_VST_64
36
38
#cmakedefine LMMS_HAVE_SF_COMPLEVEL
37
39
38
40
#cmakedefine LMMS_DEBUG_FPE
You can’t perform that action at this time.
0 commit comments