Rename RemoteAccess to TargetControl to better disambiguate RemoteServer

This commit is contained in:
baldurk committed 2016-08-19 12:23:19 +02:00
1 parent 4bfbcbd14d
commit 481a28dc29
29 files changed
+316 -254

No files matched your search

@@ -64,8 +64,8 @@ int GetIdentPort(pid_t childPid)
int num = sscanf(line, " %d: %x:%x", &socketnum, &hexip, &hexport);
// find open listen socket on 0.0.0.0:port
if(num == 3 && hexip == 0 && hexport >= RenderDoc_FirstCaptureNetworkPort &&
hexport <= RenderDoc_LastCaptureNetworkPort)
if(num == 3 && hexip == 0 && hexport >= RenderDoc_FirstTargetControlPort &&
hexport <= RenderDoc_LastTargetControlPort)
{
ret = hexport;
break;
+1 -1
View File
@@ -108,7 +108,7 @@ int GetIdentPort(pid_t childPid)
}
const int port = std::stoi(portStr);
if(port >= RenderDoc_FirstCaptureNetworkPort && port <= RenderDoc_LastCaptureNetworkPort)
if(port >= RenderDoc_FirstTargetControlPort && port <= RenderDoc_LastTargetControlPort)
{
return port;
}
+2 -2
View File
@@ -64,8 +64,8 @@ int GetIdentPort(pid_t childPid)
int num = sscanf(line, " %d: %x:%x", &socketnum, &hexip, &hexport);
// find open listen socket on 0.0.0.0:port
if(num == 3 && hexip == 0 && hexport >= RenderDoc_FirstCaptureNetworkPort &&
hexport <= RenderDoc_LastCaptureNetworkPort)
if(num == 3 && hexip == 0 && hexport >= RenderDoc_FirstTargetControlPort &&
hexport <= RenderDoc_LastTargetControlPort)
{
ret = hexport;
break;
+6 -6
View File
@@ -133,10 +133,10 @@ void Process::ApplyEnvironmentModification()
}
// helpers for various shims and dlls etc, not part of the public API
extern "C" __declspec(dllexport) void __cdecl RENDERDOC_GetRemoteAccessIdent(uint32_t *ident)
extern "C" __declspec(dllexport) void __cdecl RENDERDOC_GetTargetControlIdent(uint32_t *ident)
{
if(ident)
*ident = RenderDoc::Inst().GetRemoteAccessIdent();
*ident = RenderDoc::Inst().GetTargetControlIdent();
}
extern "C" __declspec(dllexport) void __cdecl RENDERDOC_SetCaptureOptions(CaptureOptions *opts)
@@ -521,7 +521,7 @@ uint32_t Process::InjectIntoProcess(uint32_t pid, const char *logfile, const Cap
uintptr_t loc = FindRemoteDLL(pid, L"renderdoc.dll");
uint32_t remoteident = 0;
uint32_t controlident = 0;
if(loc == 0)
{
@@ -538,8 +538,8 @@ uint32_t Process::InjectIntoProcess(uint32_t pid, const char *logfile, const Cap
InjectFunctionCall(hProcess, loc, "RENDERDOC_SetCaptureOptions", (CaptureOptions *)opts,
sizeof(CaptureOptions));
InjectFunctionCall(hProcess, loc, "RENDERDOC_GetRemoteAccessIdent", &remoteident,
sizeof(remoteident));
InjectFunctionCall(hProcess, loc, "RENDERDOC_GetTargetControlIdent", &controlident,
sizeof(controlident));
}
if(waitForExit)
@@ -547,7 +547,7 @@ uint32_t Process::InjectIntoProcess(uint32_t pid, const char *logfile, const Cap
CloseHandle(hProcess);
return remoteident;
return controlident;
}
uint32_t Process::LaunchProcess(const char *app, const char *workingDir, const char *cmdLine)