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/downloadmanager.cpp | |
| parent | d62ec9c867b448276ab9873ddd3f320487ab5572 (diff) | |
Fix MO endorsement check and add game to ModInfo s_ModsByModID
Diffstat (limited to 'src/downloadmanager.cpp')
| -rw-r--r-- | src/downloadmanager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp index 097a1168..d9e86544 100644 --- a/src/downloadmanager.cpp +++ b/src/downloadmanager.cpp @@ -895,6 +895,14 @@ int DownloadManager::getModID(int index) const return m_ActiveDownloads.at(index)->m_FileInfo->modID;
}
+QString DownloadManager::getGameName(int index) const
+{
+ if ((index < 0) || (index >= m_ActiveDownloads.size())) {
+ throw MyException(tr("mod id: invalid download index %1").arg(index));
+ }
+ return m_ActiveDownloads.at(index)->m_FileInfo->gameName;
+}
+
bool DownloadManager::isHidden(int index) const
{
if ((index < 0) || (index >= m_ActiveDownloads.size())) {
|
