Merge pull request #491 from tomaz82/fix_custom_collections

Fix missing / in custom collection path
This commit is contained in:
John Rassa 2018-10-09 07:33:46 -04:00 committed by GitHub
commit 8c0b00c490
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1035,12 +1035,12 @@ bool CollectionSystemManager::includeFileInAutoCollections(FileData* file)
std::string getCustomCollectionConfigPath(std::string collectionName) std::string getCustomCollectionConfigPath(std::string collectionName)
{ {
return getCollectionsFolder() + "custom-" + collectionName + ".cfg";; return getCollectionsFolder() + "/custom-" + collectionName + ".cfg";
} }
std::string getCollectionsFolder() std::string getCollectionsFolder()
{ {
return Utils::FileSystem::getGenericPath(Utils::FileSystem::getHomePath() + "/.emulationstation/collections/"); return Utils::FileSystem::getGenericPath(Utils::FileSystem::getHomePath() + "/.emulationstation/collections");
} }
bool systemSort(SystemData* sys1, SystemData* sys2) bool systemSort(SystemData* sys1, SystemData* sys2)