From c6751b690aaed5a7069eb7ec073e7675335a2e0f Mon Sep 17 00:00:00 2001 From: Al12rs Date: Fri, 7 Sep 2018 18:56:28 +0200 Subject: Improved Skript Extender Plugin filter to actually look for plugins and not only the SKSE folder. --- src/modinforegular.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/modinforegular.cpp') diff --git a/src/modinforegular.cpp b/src/modinforegular.cpp index f74b3a36..dcace416 100644 --- a/src/modinforegular.cpp +++ b/src/modinforegular.cpp @@ -481,8 +481,12 @@ std::vector ModInfoRegular::getContents() const if (extender != nullptr) { QString sePluginPath = extender->PluginPath(); - if (dir.exists(sePluginPath)) - m_CachedContent.push_back(CONTENT_SKSE); + if (dir.exists(sePluginPath)) { + QDir sePluginDir(absolutePath() + "/" + sePluginPath); + if (sePluginDir.entryList(QStringList() << "*.dll").size() > 0) { + m_CachedContent.push_back(CONTENT_SKSE); + } + } } if (dir.exists("textures") || dir.exists("icons") || dir.exists("bookart")) m_CachedContent.push_back(CONTENT_TEXTURE); -- cgit v1.3.1