From b79f6588a4aae43ae252eb9725d22d23c3622122 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 28 Apr 2022 19:40:43 +0200 Subject: [PATCH] Added support for using the %ROMPATH% variable in the es_systems.xml command tag. --- es-app/src/FileData.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/es-app/src/FileData.cpp b/es-app/src/FileData.cpp index 4341991ed..ef0be8738 100644 --- a/es-app/src/FileData.cpp +++ b/es-app/src/FileData.cpp @@ -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);