mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-16 11:04:28 +01:00
GameList: Create covers directory if missing before downloading covers
Signed-off-by: SternXD <stern@sidestore.io>
This commit is contained in:
1 parent
ee57382d6e
commit
e31f57a02f
1 file changed
+6
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user