mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-24 14:47:05 +00:00
Rename RemoteAccess to TargetControl to better disambiguate RemoteServer
This commit is contained in:
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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user