mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-08 20:23:05 +02:00
Adding a item path property and setting default path for if baseItemPath did not exist.
This commit is contained in:
@@ -265,18 +265,11 @@ bool Launcher::GetExtensions(std::string &extensions, std::string collection)
|
||||
|
||||
bool Launcher::GetCollectionDirectory(std::string &directory, std::string collection)
|
||||
{
|
||||
std::string itemsPathKey = "collections." + collection + ".list.path";
|
||||
std::string itemsPathValue;
|
||||
|
||||
|
||||
// find the items path folder (i.e. ROM path)
|
||||
if(!Config.GetPropertyAbsolutePath(itemsPathKey, itemsPathValue))
|
||||
{
|
||||
directory = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
directory += itemsPathValue + "/";
|
||||
}
|
||||
Config.GetCollectionAbsolutePath(collection, itemsPathValue);
|
||||
directory += itemsPathValue + "/";
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user