diff options
| author | Silarn <jrim@rimpo.org> | 2018-05-02 12:38:23 -0500 |
|---|---|---|
| committer | Silarn <jrim@rimpo.org> | 2018-05-02 12:38:23 -0500 |
| commit | 168da18aa51868ad3ac908affb55a8aabdba1aed (patch) | |
| tree | 7ebd21b8936f27b620a6eab72a4eeb19789bed20 /src/organizercore.cpp | |
| parent | d62ec9c867b448276ab9873ddd3f320487ab5572 (diff) | |
Fix MO endorsement check and add game to ModInfo s_ModsByModID
Diffstat (limited to 'src/organizercore.cpp')
| -rw-r--r-- | src/organizercore.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp index 69c28c5c..4739021a 100644 --- a/src/organizercore.cpp +++ b/src/organizercore.cpp @@ -919,13 +919,14 @@ void OrganizerCore::installDownload(int index) {
try {
QString fileName = m_DownloadManager.getFilePath(index);
+ QString gameName = m_DownloadManager.getGameName(index);
int modID = m_DownloadManager.getModID(index);
int fileID = m_DownloadManager.getFileInfo(index)->fileID;
GuessedValue<QString> modName;
// see if there already are mods with the specified mod id
if (modID != 0) {
- std::vector<ModInfo::Ptr> modInfo = ModInfo::getByModID(modID);
+ std::vector<ModInfo::Ptr> modInfo = ModInfo::getByModID(gameName, modID);
for (auto iter = modInfo.begin(); iter != modInfo.end(); ++iter) {
std::vector<ModInfo::EFlag> flags = (*iter)->getFlags();
if (std::find(flags.begin(), flags.end(), ModInfo::FLAG_BACKUP)
|
