mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05: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
|
||||
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, "\\", "")) + "/" +
|
||||
|
|
Loading…
Reference in a new issue