Support multiple rompaths using the ; separator for list.path in the

collection's settings.conf file.
This commit is contained in:
Pieter Hulshoff 2017-01-20 14:52:01 +01:00
parent 96f1cbc580
commit c42715c250
2 changed files with 17 additions and 2 deletions

View File

@ -324,7 +324,22 @@ bool CollectionInfoBuilder::ImportDirectory(CollectionInfo *info, std::string me
// Read ROM directory if showMissing is false
if (!showMissing || includeFilter.size() == 0)
{
ImportRomDirectory(path, info, includeFilter, excludeFilter, romHierarchy);
do
{
std::string rompath;
size_t position = path.find( ";" );
if(position != std::string::npos)
{
rompath = path.substr(0, position);
path = path.substr(position+1);
}
else
{
rompath = path;
path = "";
}
ImportRomDirectory(rompath, info, includeFilter, excludeFilter, romHierarchy);
} while (path != "");
}
while(includeFilter.size() > 0)

View File

@ -20,7 +20,7 @@
std::string retrofe_version_major = "0";
std::string retrofe_version_minor = "7";
std::string retrofe_version_build = "20b3";
std::string retrofe_version_build = "20b4";
std::string Version::getString()