mirror of
https://github.com/PCSX2/pcsx2.git
synced 2025-12-16 04:08:48 +00:00
GameList: Create covers directory if missing before downloading covers
This commit is contained in:
parent
347c3a3084
commit
d7925b3ac2
@ -1317,6 +1317,12 @@ bool GameList::DownloadCovers(const std::vector<std::string>& url_templates, boo
|
|||||||
return false;
|
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::vector<std::pair<std::string, std::string>> download_urls;
|
||||||
{
|
{
|
||||||
std::unique_lock lock(s_mutex);
|
std::unique_lock lock(s_mutex);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user