mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-13 05:37:42 +02:00
expand env from wrapped cmd
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -307,7 +307,7 @@ QString expandVariables(const QString& input, QProcessEnvironment dict)
|
||||
return result;
|
||||
}
|
||||
|
||||
QString LaunchTask::substituteVariables(QString& cmd) const
|
||||
QString LaunchTask::substituteVariables(QString& cmd, bool isLaunch) const
|
||||
{
|
||||
return expandVariables(cmd, m_instance->createEnvironment());
|
||||
}
|
||||
return expandVariables(cmd, isLaunch ? m_instance->createLaunchEnvironment() : m_instance->createEnvironment());
|
||||
}
|
||||
|
Reference in New Issue
Block a user