mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-01 21:42:31 +01:00
Fix blacklist for --galaxy-install
This commit is contained in:
parent
956e1f36ff
commit
a7de153d76
@ -3961,7 +3961,7 @@ void Downloader::galaxyInstallGameById(const std::string& product_id, int build_
|
||||
std::vector<galaxyDepotItem> items = this->galaxyGetDepotItemVectorFromJson(json, iGalaxyArch);
|
||||
|
||||
// Remove blacklisted files from items vector
|
||||
for (std::vector<galaxyDepotItem>::iterator it = items.begin(); it != items.end(); it++)
|
||||
for (std::vector<galaxyDepotItem>::iterator it = items.begin(); it != items.end();)
|
||||
{
|
||||
std::string item_install_path = install_path + "/" + it->path;
|
||||
if (Globals::globalConfig.blacklist.isBlacklisted(item_install_path))
|
||||
@ -3970,6 +3970,10 @@ void Downloader::galaxyInstallGameById(const std::string& product_id, int build_
|
||||
std::cout << "Skipping blacklisted file: " << item_install_path << std::endl;
|
||||
items.erase(it);
|
||||
}
|
||||
else
|
||||
{
|
||||
++it;
|
||||
}
|
||||
}
|
||||
|
||||
// Check for differences between previously installed build and new build
|
||||
|
Loading…
x
Reference in New Issue
Block a user