Added support for using the %ROMPATH% variable in the es_systems.xml command tag.

This commit is contained in:
Leon Styhre 2022-04-28 19:40:43 +02:00
parent c9899694ed
commit b79f6588a4

View file

@ -1169,6 +1169,7 @@ void FileData::launchGame()
command = Utils::String::replace(command, "%ROM%", romPath);
command = Utils::String::replace(command, "%BASENAME%", baseName);
command = Utils::String::replace(command, "%ROMRAW%", romRaw);
command = Utils::String::replace(command, "%ROMPATH%", getROMDirectory());
// Trim any leading and trailing whitespace characters as they could cause launch issues.
command = Utils::String::trim(command);