summaryrefslogtreecommitdiff
path: root/src/modinforegular.cpp
diff options
context:
space:
mode:
authorAl12rs <gabriel.cortesi@outlook.com>2018-09-07 18:56:28 +0200
committerAl12rs <gabriel.cortesi@outlook.com>2018-09-07 18:56:28 +0200
commitc6751b690aaed5a7069eb7ec073e7675335a2e0f (patch)
tree61cc5baa69582c5a3d126047823102c627e98647 /src/modinforegular.cpp
parent138154aca0fcb27e3e09e2de3f895c5e1de99e3f (diff)
Improved Skript Extender Plugin filter to actually look for plugins and not only the SKSE folder.
Diffstat (limited to 'src/modinforegular.cpp')
-rw-r--r--src/modinforegular.cpp8
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);