mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-30 20:15:38 +00:00
Fix ScreenScraper search by filename
This commit is contained in:
parent
2fb5881fb6
commit
1ee09bcca8
|
@ -125,11 +125,7 @@ void screenscraper_generate_scraper_requests(const ScraperSearchParams& params,
|
||||||
|
|
||||||
ScreenScraperRequest::ScreenScraperConfig ssConfig;
|
ScreenScraperRequest::ScreenScraperConfig ssConfig;
|
||||||
|
|
||||||
std::string cleanName = params.nameOverride;
|
path = ssConfig.getGameSearchUrl(params.game->getFileName());
|
||||||
if (cleanName.empty())
|
|
||||||
cleanName = params.game->getCleanName();
|
|
||||||
|
|
||||||
path = ssConfig.getGameSearchUrl(cleanName);
|
|
||||||
auto& platforms = params.system->getPlatformIds();
|
auto& platforms = params.system->getPlatformIds();
|
||||||
|
|
||||||
for (auto platformIt = platforms.cbegin(); platformIt != platforms.cend(); platformIt++)
|
for (auto platformIt = platforms.cbegin(); platformIt != platforms.cend(); platformIt++)
|
||||||
|
|
Loading…
Reference in a new issue