GameList: Create covers directory if missing before downloading covers

This commit is contained in:
SternXD 2025-12-06 13:04:04 -05:00
parent 347c3a3084
commit d7925b3ac2
No known key found for this signature in database
GPG Key ID: D441C1FDAF4EAC36

View File

@ -1317,6 +1317,12 @@ bool GameList::DownloadCovers(const std::vector<std::string>& url_templates, boo
return false;
}
if (!FileSystem::CreateDirectoryPath(EmuFolders::Covers.c_str(), false))
{
progress->DisplayError(fmt::format("Failed to create covers directory: {}", EmuFolders::Covers).c_str());
return false;
}
std::vector<std::pair<std::string, std::string>> download_urls;
{
std::unique_lock lock(s_mutex);