Keep debug log the same even when going via cap32for64

This commit is contained in:
baldurk
2016-12-08 18:22:48 +00:00
parent 739b4cb1ab
commit c810a96300
4 changed files with 18 additions and 9 deletions
+5
View File
@@ -548,6 +548,7 @@ struct Cap32For64Command : public Command
{
parser.add<uint32_t>("pid", 0, "");
parser.add<string>("log", 0, "");
parser.add<string>("debuglog", 0, "");
parser.add<string>("capopts", 0, "");
parser.stop_at_rest(true);
}
@@ -634,6 +635,10 @@ struct Cap32For64Command : public Command
type, sep);
}
string debuglog = parser.get<string>("debuglog");
RENDERDOC_SetDebugLogFile(debuglog.c_str());
int ret = RENDERDOC_InjectIntoProcess(parser.get<uint32_t>("pid"), env,
parser.get<string>("log").c_str(), &cmdopts, false);