diff options
| author | Jonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com> | 2025-01-02 14:10:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-02 14:10:53 +0100 |
| commit | 9049e65c5e1f29792b596a8e84a749d2de7ea792 (patch) | |
| tree | 1741d9b7b88f8b31af3e624ab720e14bad826728 /src/downloadmanager.cpp | |
| parent | f8340e16201c214eef5327c4e810432e12b23805 (diff) | |
Add startDownloadNexusFileForGame (#2181)
Diffstat (limited to 'src/downloadmanager.cpp')
| -rw-r--r-- | src/downloadmanager.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp index 730803f6..5156c357 100644 --- a/src/downloadmanager.cpp +++ b/src/downloadmanager.cpp @@ -1907,13 +1907,12 @@ int DownloadManager::startDownloadURLs(const QStringList& urls) return m_ActiveDownloads.size() - 1; } -int DownloadManager::startDownloadNexusFile(int modID, int fileID) +int DownloadManager::startDownloadNexusFile(const QString& gameName, int modID, + int fileID) { int newID = m_ActiveDownloads.size(); - addNXMDownload(QString("nxm://%1/mods/%2/files/%3") - .arg(m_ManagedGame->gameShortName()) - .arg(modID) - .arg(fileID)); + addNXMDownload( + QString("nxm://%1/mods/%2/files/%3").arg(gameName).arg(modID).arg(fileID)); return newID; } |
