mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
Added support for combining a %ROM% variable with the %INJECT% variable
This commit is contained in:
parent
13ff970476
commit
ca65fcbe8c
|
@ -1582,6 +1582,7 @@ void FileData::launchGame()
|
||||||
#else
|
#else
|
||||||
injectFile = Utils::String::replace(injectFile, "%BASENAME%",
|
injectFile = Utils::String::replace(injectFile, "%BASENAME%",
|
||||||
Utils::String::replace(baseName, "\\", ""));
|
Utils::String::replace(baseName, "\\", ""));
|
||||||
|
injectFile = Utils::String::replace(injectFile, "%ROM%", romRaw);
|
||||||
if (injectFile.front() != '/')
|
if (injectFile.front() != '/')
|
||||||
injectFile =
|
injectFile =
|
||||||
Utils::FileSystem::getParent(Utils::String::replace(romPath, "\\", "")) + "/" +
|
Utils::FileSystem::getParent(Utils::String::replace(romPath, "\\", "")) + "/" +
|
||||||
|
|
Loading…
Reference in a new issue