Skip to content

Commit be6702a

Browse files
committed
GameList: Create covers directory if missing before downloading covers
1 parent 3e15c06 commit be6702a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pcsx2/GameList.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,12 @@ bool GameList::DownloadCovers(const std::vector<std::string>& url_templates, boo
13551355
return false;
13561356
}
13571357

1358+
if (!FileSystem::CreateDirectoryPath(EmuFolders::Covers.c_str(), false))
1359+
{
1360+
progress->DisplayError(fmt::format("Failed to create covers directory: {}", EmuFolders::Covers).c_str());
1361+
return false;
1362+
}
1363+
13581364
std::vector<std::pair<std::string, std::string>> download_urls;
13591365
{
13601366
std::unique_lock lock(s_mutex);

0 commit comments

Comments
 (0)