diff --git a/src/nostalgia/studio/mainwindow.cpp b/src/nostalgia/studio/mainwindow.cpp index 5ac5087a..f2b8292b 100644 --- a/src/nostalgia/studio/mainwindow.cpp +++ b/src/nostalgia/studio/mainwindow.cpp @@ -81,17 +81,9 @@ void MainWindow::loadPlugins() { } void MainWindow::loadPluginDir(QString dir) { -#if defined(Q_OS_WIN) - constexpr auto libSuffix = ".dll"; -#elif defined(Q_OS_MAC) - constexpr auto libSuffix = ".dylib"; -#else - constexpr auto libSuffix = ".so"; -#endif - for (auto pluginPath : QDir(dir).entryList()) { pluginPath = dir + '/' + pluginPath; - if (pluginPath.endsWith(libSuffix)) { + if (QLibrary::isLibrary(pluginPath)) { loadPlugin(pluginPath); } }