mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 09:26:52 +00:00
Allow specifying environment variable modifications
* This works for local and remote invocations of programs, but is mostly useful on unix systems (Windows programs use env vars less often)
This commit is contained in:
@@ -98,15 +98,15 @@ namespace renderdocui.Code
|
||||
while (m_Thread.IsAlive && !Running) ;
|
||||
}
|
||||
|
||||
public UInt32 ExecuteAndInject(string app, string workingDir, string cmdLine, string logfile, CaptureOptions opts)
|
||||
public UInt32 ExecuteAndInject(string app, string workingDir, string cmdLine, EnvironmentModification[] env, string logfile, CaptureOptions opts)
|
||||
{
|
||||
if (m_Remote == null)
|
||||
{
|
||||
return StaticExports.ExecuteAndInject(app, workingDir, cmdLine, logfile, opts);
|
||||
return StaticExports.ExecuteAndInject(app, workingDir, cmdLine, env, logfile, opts);
|
||||
}
|
||||
else
|
||||
{
|
||||
return m_Remote.ExecuteAndInject(app, workingDir, cmdLine, opts);
|
||||
return m_Remote.ExecuteAndInject(app, workingDir, cmdLine, env, opts);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user