mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Don't create gamelist folders even if their parent directory is valid.
This commit is contained in:
parent
0423dc03dd
commit
67818d5727
|
@ -84,6 +84,12 @@ FileData* findOrCreateFile(SystemData* system, const boost::filesystem::path& pa
|
|||
if(found)
|
||||
return treeNode;
|
||||
|
||||
if(type == FOLDER)
|
||||
{
|
||||
LOG(LogWarning) << "gameList: folder doesn't already exist, won't create";
|
||||
return NULL;
|
||||
}
|
||||
|
||||
FileData* file = new FileData(type, path, system);
|
||||
treeNode->addChild(file);
|
||||
return file;
|
||||
|
@ -95,7 +101,7 @@ FileData* findOrCreateFile(SystemData* system, const boost::filesystem::path& pa
|
|||
// if type is a folder it's gonna be empty, so don't bother
|
||||
if(type == FOLDER)
|
||||
{
|
||||
LOG(LogWarning) << "folder doesn't already exist, won't create metadata for folder";
|
||||
LOG(LogWarning) << "gameList: folder doesn't already exist, won't create";
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue