diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-09-07 20:19:20 +0200 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-09-07 20:19:20 +0200 |
| commit | ba162804cd85120e7210f31bbcd1e4b2a45fd394 (patch) | |
| tree | 075a8ab9247b74da917f9e2d772dd61bb68285bb /src | |
| parent | c6751b690aaed5a7069eb7ec073e7675335a2e0f (diff) | |
Added Contains Script Extender Files filter.
Diffstat (limited to 'src')
| -rw-r--r-- | src/modinfo.cpp | 1 | ||||
| -rw-r--r-- | src/modinfo.h | 1 | ||||
| -rw-r--r-- | src/modinforegular.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/modinfo.cpp b/src/modinfo.cpp index b42c7303..8ce40da3 100644 --- a/src/modinfo.cpp +++ b/src/modinfo.cpp @@ -100,6 +100,7 @@ QString ModInfo::getContentTypeName(int contentType) case CONTENT_SOUND: return tr("Sound Effects"); case CONTENT_SCRIPT: return tr("Scripts"); case CONTENT_SKSE: return tr("Script Extender"); + case CONTENT_SKSEFILES: return tr("Script Extender Files"); case CONTENT_SKYPROC: return tr("SkyProc Tools"); case CONTENT_MCM: return tr("MCM Data"); case CONTENT_INI: return tr("INI files"); diff --git a/src/modinfo.h b/src/modinfo.h index 82dd8dc8..919d1a5b 100644 --- a/src/modinfo.h +++ b/src/modinfo.h @@ -83,6 +83,7 @@ public: CONTENT_SOUND,
CONTENT_SCRIPT,
CONTENT_SKSE,
+ CONTENT_SKSEFILES,
CONTENT_SKYPROC,
CONTENT_MCM,
CONTENT_INI,
diff --git a/src/modinforegular.cpp b/src/modinforegular.cpp index dcace416..1e77e050 100644 --- a/src/modinforegular.cpp +++ b/src/modinforegular.cpp @@ -482,6 +482,7 @@ std::vector<ModInfo::EContent> ModInfoRegular::getContents() const if (extender != nullptr) { QString sePluginPath = extender->PluginPath(); if (dir.exists(sePluginPath)) { + m_CachedContent.push_back(CONTENT_SKSEFILES); QDir sePluginDir(absolutePath() + "/" + sePluginPath); if (sePluginDir.entryList(QStringList() << "*.dll").size() > 0) { m_CachedContent.push_back(CONTENT_SKSE); |
