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:
baldurk
2016-08-19 17:26:33 +02:00
parent 71cca06683
commit b5e6f8bef2
20 changed files with 1132 additions and 78 deletions
+3 -3
View File
@@ -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);
}
}