diff options
| author | Tannin <devnull@localhost> | 2014-05-25 15:39:45 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-05-25 15:39:45 +0200 |
| commit | cf0a1bc2be22c8784fd098e00e05e46373afe602 (patch) | |
| tree | 3f2140aae72dbebb1ef5c475eb019bb246f469d2 /src/directoryrefresher.cpp | |
| parent | 48c8cca578c415152e64b3c3a6e1523dbc76b4d8 (diff) | |
- files in bsas are now only displayed in the data tab if they are managed by mo
- number of problems detected by MO is now displayed as a badge on the icon
- rephrased the explanation text on the Archives tab. unchecked plugin-loaded bsas no longer prompt a warning
- bsa extraction is now handled in a plugin
- added a way for plugins to react to mod installation
- re-enabled the automatic fix for asset order problems
- bugfix: In some cases when a download wasn't started successfully the download urls weren't stored in the meta file so no resume was possible
- bugfix: MO tried to resume downloads when it didn't have and download urls
- bugfix: downloads couldn't be paused if the download was already broken on the network layer
- bugfix: download managear did not recognize a file as downloaded if the download completed before signals were hooked up
- bugfix: in-place file replacement was re-broken
Diffstat (limited to 'src/directoryrefresher.cpp')
| -rw-r--r-- | src/directoryrefresher.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/directoryrefresher.cpp b/src/directoryrefresher.cpp index 70bcf5b6..a2a3ef77 100644 --- a/src/directoryrefresher.cpp +++ b/src/directoryrefresher.cpp @@ -46,10 +46,12 @@ DirectoryEntry *DirectoryRefresher::getDirectoryStructure() return result; } -void DirectoryRefresher::setMods(const std::vector<std::tuple<QString, QString, int> > &mods) +void DirectoryRefresher::setMods(const std::vector<std::tuple<QString, QString, int> > &mods + , const std::set<QString> &managedArchives) { QMutexLocker locker(&m_RefreshLock); m_Mods = mods; + m_ManagedArchives = managedArchives; } @@ -74,8 +76,10 @@ void DirectoryRefresher::addModToStructure(DirectoryEntry *directoryStructure, c QDir dir(directory); QFileInfoList bsaFiles = dir.entryInfoList(QStringList("*.bsa"), QDir::Files); foreach (QFileInfo file, bsaFiles) { - directoryStructure->addFromBSA(ToWString(modName), directoryW, - ToWString(QDir::toNativeSeparators(file.absoluteFilePath())), priority); + if (m_ManagedArchives.find(file.fileName()) != m_ManagedArchives.end()) { + directoryStructure->addFromBSA(ToWString(modName), directoryW, + ToWString(QDir::toNativeSeparators(file.absoluteFilePath())), priority); + } } } |
