mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
The game media directory is now created on application startup instead of when first starting the scraper
This commit is contained in:
parent
9cf9b942ee
commit
177b5befef
|
@ -871,6 +871,18 @@ int main(int argc, char* argv[])
|
|||
#endif
|
||||
}
|
||||
|
||||
{
|
||||
// Create the game media folder.
|
||||
const std::string mediaDirectory {FileData::getMediaDirectory()};
|
||||
if (!Utils::FileSystem::exists(mediaDirectory)) {
|
||||
LOG(LogInfo) << "Creating game media directory \"" << mediaDirectory << "\"...";
|
||||
Utils::FileSystem::createDirectory(mediaDirectory);
|
||||
if (!Utils::FileSystem::exists(mediaDirectory)) {
|
||||
LOG(LogWarning) << "Couldn't create directory, permission problems?";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
#if defined(__ANDROID__)
|
||||
const std::string mediaDirectory {FileData::getMediaDirectory()};
|
||||
|
|
Loading…
Reference in a new issue