mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-15 02:11:22 +00:00
Handle injecting environment variable params
* This also fixes the problem of capturing 32-bit programs with 64-bit RenderDoc failing to properly insert environment variables and error'ing when it tries to do it directly.
This commit is contained in:
1 parent
220e214f4d
commit
9f4a60028e
10 files changed
+214
-67
No files matched your search
@@ -402,9 +402,10 @@ extern "C" RENDERDOC_API void RENDERDOC_CC RENDERDOC_StartGlobalHook(const char
|
||||
}
|
||||
|
||||
extern "C" RENDERDOC_API uint32_t RENDERDOC_CC RENDERDOC_InjectIntoProcess(
|
||||
uint32_t pid, const char *logfile, const CaptureOptions *opts, bool32 waitForExit)
|
||||
uint32_t pid, void *env, const char *logfile, const CaptureOptions *opts, bool32 waitForExit)
|
||||
{
|
||||
return Process::InjectIntoProcess(pid, logfile, opts, waitForExit != 0);
|
||||
return Process::InjectIntoProcess(pid, (Process::EnvironmentModification *)env, logfile, opts,
|
||||
waitForExit != 0);
|
||||
}
|
||||
|
||||
extern "C" RENDERDOC_API bool32 RENDERDOC_CC RENDERDOC_GetThumbnail(const char *filename, byte *buf,
|
||||
|
||||
Reference in new issue
Block a user