Cleaned up renderdoccmd, split out necessary bits to OS-specific files

This commit is contained in:
baldurk committed 2014-06-08 11:00:41 +01:00
1 parent 772fd94336
commit 0f080d1f44
8 files changed
+713 -624

No files matched your search

+1 -1
View File
@@ -92,7 +92,7 @@ class CrashHandler : public ICrashHandler
wstring cmdline = L"\"";
cmdline += radpath;
cmdline += L"/renderdoccmd.exe\" crashhandle";
cmdline += L"/renderdoccmd.exe\" --crashhandle";
wchar_t *paramsAlloc = new wchar_t[512];
+1 -1
View File
@@ -249,7 +249,7 @@ uint32_t Process::InjectIntoProcess(uint32_t pid, const wchar_t *logfile, const
string optstr = opts->ToString();
_snwprintf_s(paramsAlloc, 255, 255, L"\"%ls\" -cap32for64 %d \"%ls\" \"%hs\"", renderdocPath, pid, logfile, optstr.c_str());
_snwprintf_s(paramsAlloc, 255, 255, L"\"%ls\" --cap32for64 %d \"%ls\" \"%hs\"", renderdocPath, pid, logfile, optstr.c_str());
BOOL retValue = CreateProcessW(NULL, paramsAlloc, &pSec, &tSec, false, CREATE_SUSPENDED, NULL, NULL, &si, &pi);