mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-16 11:48:53 +01:00
MLaunching merged romset support
This commit is contained in:
parent
c5c8499500
commit
1785c008a1
@ -67,11 +67,10 @@ bool Launcher::run(std::string collection, Item *collectionItem)
|
|||||||
Logger::write(Logger::ZONE_ERROR, "Launcher", "No launcher arguments specified for launcher " + launcherName);
|
Logger::write(Logger::ZONE_ERROR, "Launcher", "No launcher arguments specified for launcher " + launcherName);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(!findFile(selectedItemsPath, matchedExtension, selectedItemsDirectory, collectionItem->name, extensionstr))
|
|
||||||
{
|
// It is ok to continue if the file could not be found. We could be launching a merged romset
|
||||||
// FindFile() prints out diagnostic messages for us, no need to print anything here
|
findFile(selectedItemsPath, matchedExtension, selectedItemsDirectory, collectionItem->name, extensionstr);
|
||||||
return false;
|
|
||||||
}
|
|
||||||
args = replaceVariables(args,
|
args = replaceVariables(args,
|
||||||
selectedItemsPath,
|
selectedItemsPath,
|
||||||
collectionItem->name,
|
collectionItem->name,
|
||||||
@ -329,7 +328,7 @@ bool Launcher::findFile(std::string &foundFilePath, std::string &foundFilename,
|
|||||||
<< filenameWithoutExtension << "\" in folder \""
|
<< filenameWithoutExtension << "\" in folder \""
|
||||||
<< directory;
|
<< directory;
|
||||||
|
|
||||||
Logger::write(Logger::ZONE_ERROR, "Launcher", ss.str());
|
Logger::write(Logger::ZONE_WARNING, "Launcher", ss.str());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user