mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-29 10:08:51 +01:00
Fix %ITEM_FILENAME% replacement for launcher.
This commit is contained in:
parent
4d4acca35f
commit
1c67c485c3
@ -74,21 +74,21 @@ bool Launcher::run(std::string collection, Item *collectionItem)
|
||||
args = replaceVariables(args,
|
||||
selectedItemsPath,
|
||||
collectionItem->name,
|
||||
collectionItem->filename(),
|
||||
Utils::getFileName(selectedItemsPath),
|
||||
selectedItemsDirectory,
|
||||
collection);
|
||||
|
||||
executablePath = replaceVariables(executablePath,
|
||||
selectedItemsPath,
|
||||
collectionItem->name,
|
||||
collectionItem->filename(),
|
||||
Utils::getFileName(selectedItemsPath),
|
||||
selectedItemsDirectory,
|
||||
collection);
|
||||
|
||||
currentDirectory = replaceVariables(currentDirectory,
|
||||
selectedItemsPath,
|
||||
collectionItem->name,
|
||||
collectionItem->filename(),
|
||||
Utils::getFileName(selectedItemsPath),
|
||||
selectedItemsDirectory,
|
||||
collection);
|
||||
|
||||
|
||||
@ -115,7 +115,7 @@ bool ImportConfiguration(Configuration *c)
|
||||
|
||||
std::string importFile = Utils::combinePath(launchersPath, std::string(dirp->d_name));
|
||||
|
||||
if(!c->import(prefix, importFile))
|
||||
if(!c->import(basename, prefix, importFile))
|
||||
{
|
||||
Logger::write(Logger::ZONE_ERROR, "RetroFE", "Could not import \"" + importFile + "\"");
|
||||
closedir(dp);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user