GameList: Create covers directory if missing before downloading covers

Signed-off-by: SternXD <stern@sidestore.io>
This commit is contained in:
SternXD authored and Ty committed 2026-06-07 14:53:56 -04:00
1 parent ee57382d6e
commit e31f57a02f
1 file changed
+6
+6
View File
@@ -1357,6 +1357,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);