mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-03-09 12:55:58 +01:00
Use remote XML for languagepacks
This commit is contained in:
parent
d591f08acd
commit
caacff9f22
@ -734,10 +734,13 @@ void Downloader::download()
|
||||
// Download
|
||||
if (!url.empty())
|
||||
{
|
||||
std::string XML;
|
||||
if (config.bRemoteXML)
|
||||
XML = gogAPI->getXML(games[i].gamename, games[i].languagepacks[j].id);
|
||||
if (!games[i].languagepacks[j].name.empty())
|
||||
std::cout << "Dowloading: " << games[i].gamename << " " << games[i].languagepacks[j].name << std::endl;
|
||||
std::cout << filepath << std::endl;
|
||||
CURLcode result = downloadFile(url, filepath);
|
||||
CURLcode result = downloadFile(url, filepath, XML, games[i].gamename);
|
||||
std::cout << std::endl;
|
||||
if (result==CURLE_OK && config.sXMLFile == "automatic")
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user