mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-04 00:52:54 +02:00
Fixed crash on launch close. Fixed launch and rom search paths for merged collections .Removed verbose debug statement.
This commit is contained in:
@@ -272,11 +272,19 @@ bool Launcher::extensions(std::string &extensions, std::string collection)
|
||||
bool Launcher::collectionDirectory(std::string &directory, std::string collection)
|
||||
{
|
||||
std::string itemsPathValue;
|
||||
std::string mergedCollectionName;
|
||||
|
||||
// temporarily set currentCollection in case this is a subcollection
|
||||
config_.getProperty("currentCollection", mergedCollectionName);
|
||||
config_.setProperty("currentCollection", collection);
|
||||
|
||||
// find the items path folder (i.e. ROM path)
|
||||
config_.getCollectionAbsolutePath(collection, itemsPathValue);
|
||||
directory += itemsPathValue + Utils::pathSeparator;
|
||||
|
||||
// restore old collection name
|
||||
config_.setProperty("currentCollection", mergedCollectionName);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user