Fixed Windows expansion of %RETROFE_EXEC_PATH%.

This commit is contained in:
Pieter Hulshoff 2016-12-21 11:55:29 +01:00
parent df35355744
commit 9967c8063f

View File

@ -119,7 +119,7 @@ std::string Launcher::replaceVariables(std::string str,
str = Utils::replace(str, "%ITEM_COLLECTION_NAME%", itemCollectionName); str = Utils::replace(str, "%ITEM_COLLECTION_NAME%", itemCollectionName);
str = Utils::replace(str, "%RETROFE_PATH%", Configuration::absolutePath); str = Utils::replace(str, "%RETROFE_PATH%", Configuration::absolutePath);
#ifdef WIN32 #ifdef WIN32
str = Utils::replace(str, "%RETROFE_EXEC_PATH%", Utils::combinePath(Configuration::absolutePath, "RetroFE.exe")); str = Utils::replace(str, "%RETROFE_EXEC_PATH%", Utils::combinePath(Configuration::absolutePath, "core", "RetroFE.exe"));
#else #else
str = Utils::replace(str, "%RETROFE_EXEC_PATH%", Utils::combinePath(Configuration::absolutePath, "RetroFE")); str = Utils::replace(str, "%RETROFE_EXEC_PATH%", Utils::combinePath(Configuration::absolutePath, "RetroFE"));
#endif #endif