diff options
| author | Jeremy Rimpo <jrim@rimpo.org> | 2017-12-13 03:11:03 -0600 |
|---|---|---|
| committer | Jeremy Rimpo <jrim@rimpo.org> | 2017-12-13 03:11:03 -0600 |
| commit | 083d1078753698b5ff347d91aa17219fd1e1cb5a (patch) | |
| tree | 17772176264e83d1147c804897bb82ae2a8efdca /src/modinfoforeign.cpp | |
| parent | 2226a483d1415a315d7b558b0e2dc9919dfa858b (diff) | |
A number of improvements and fixes
* Move diagnostics tab to un-break tutorials targeting tab 3
* Restrict order locking for force-enabled plugins
* Cascade locked positions in the case of a conflict
* Should remove existing invalid locks
* Add some info to primary plugins in plugin list
* Differentiate plugin names for DLC and CC content
Diffstat (limited to 'src/modinfoforeign.cpp')
| -rw-r--r-- | src/modinfoforeign.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/modinfoforeign.cpp b/src/modinfoforeign.cpp index 6ad8b6d8..0bde2c30 100644 --- a/src/modinfoforeign.cpp +++ b/src/modinfoforeign.cpp @@ -50,9 +50,19 @@ QString ModInfoForeign::getDescription() const ModInfoForeign::ModInfoForeign(const QString &modName, const QString &referenceFile, const QStringList &archives, + ModInfo::EModType modType, DirectoryEntry **directoryStructure) : ModInfoWithConflictInfo(directoryStructure), m_ReferenceFile(referenceFile), m_Archives(archives) { m_CreationTime = QFileInfo(referenceFile).created(); - m_Name = "Unmanaged: " + modName; + switch (modType) { + case ModInfo::EModType::MOD_DLC: + m_Name = "DLC: " + modName; + break; + case ModInfo::EModType::MOD_CC: + m_Name = "Creation Club: " + modName; + break; + default: + m_Name = "Unmanaged: " + modName; + } } |
