diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-09-07 18:56:28 +0200 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-09-07 18:56:28 +0200 |
| commit | c6751b690aaed5a7069eb7ec073e7675335a2e0f (patch) | |
| tree | 61cc5baa69582c5a3d126047823102c627e98647 /src | |
| parent | 138154aca0fcb27e3e09e2de3f895c5e1de99e3f (diff) | |
Improved Skript Extender Plugin filter to actually look for plugins and not only the SKSE folder.
Diffstat (limited to 'src')
| -rw-r--r-- | src/modinforegular.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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<ModInfo::EContent> 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); |
