Fix downloading language packs with file id

This commit is contained in:
Sude 2016-04-26 18:22:34 +03:00
parent 7b1127a85e
commit 3fe58a06a1

View File

@ -2962,6 +2962,8 @@ void Downloader::downloadFileWithId(const std::string& fileid_string, const std:
url = gogAPI->getInstallerLink(gamename, fileid);
else if (fileid.find("patch") != std::string::npos)
url = gogAPI->getPatchLink(gamename, fileid);
else if (fileid.find("langpack") != std::string::npos)
url = gogAPI->getLanguagePackLink(gamename, fileid);
else
url = gogAPI->getExtraLink(gamename, fileid);