Fixed two issues with the 'Only show ROMs from gamelist.xml files' setting where an incorrect folder path would be shown in the metadata editor and folder links wouldn't work.

This commit is contained in:
Leon Styhre 2022-12-14 17:35:38 +01:00
parent ab31eafaca
commit fafb7c257f

View file

@ -87,9 +87,8 @@ namespace GamelistFileParser
if (!system->getFlattenFolders()) {
// Create missing folder.
FileData* folder {new FileData(
FOLDER, Utils::FileSystem::getStem(treeNode->getPath()) + "/" + *path_it,
system->getSystemEnvData(), system)};
FileData* folder {new FileData(FOLDER, treeNode->getPath() + "/" + *path_it,
system->getSystemEnvData(), system)};
treeNode->addChild(folder);
treeNode = folder;
}