diff --git a/es-app/src/main.cpp b/es-app/src/main.cpp index adb3b2867..91990e0a9 100644 --- a/es-app/src/main.cpp +++ b/es-app/src/main.cpp @@ -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()};