Skip to content

Commit

Permalink
Merge pull request RetroPie#862 from pjft/fix-invalid-folder
Browse files Browse the repository at this point in the history
Fix initialization of metadata
  • Loading branch information
pjft authored Feb 19, 2024
2 parents 3e23bca + 049d378 commit bb6d8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion es-app/src/Gamelist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ void parseGamelist(SystemData* system)
else if(!file->isArcadeAsset())
{
std::string defaultName = file->metadata.get("name");
file->metadata = MetaDataList::createFromXML(i == 0 ? GAME_METADATA : FOLDER_METADATA, fileNode, relativeTo);
file->metadata = MetaDataList::createFromXML(file->getType() == GAME ? GAME_METADATA : FOLDER_METADATA, fileNode, relativeTo);

//make sure name gets set if one didn't exist
if(file->metadata.get("name").empty())
Expand Down

0 comments on commit bb6d8e9

Please sign in to comment.