Fix %ITEM_FILENAME% replacement for launcher.

This commit is contained in:
emb
2015-10-20 21:13:01 -05:00
parent 4d4acca35f
commit 1c67c485c3
2 changed files with 4 additions and 4 deletions

View File

@@ -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);