From ca65fcbe8c1ec74dad5a7f02bc98371608d7d995 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 3 Jun 2024 20:25:33 +0200 Subject: [PATCH] Added support for combining a %ROM% variable with the %INJECT% variable --- 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 a53cce599..4b36003ad 100644 --- a/es-app/src/FileData.cpp +++ b/es-app/src/FileData.cpp @@ -1582,6 +1582,7 @@ void FileData::launchGame() #else injectFile = Utils::String::replace(injectFile, "%BASENAME%", Utils::String::replace(baseName, "\\", "")); + injectFile = Utils::String::replace(injectFile, "%ROM%", romRaw); if (injectFile.front() != '/') injectFile = Utils::FileSystem::getParent(Utils::String::replace(romPath, "\\", "")) + "/" +