mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-15 02:11:22 +00:00
detect adb: (invalid in normal hostname) as android remote target
* For now, just redirect to 127.0.0.1 and assume the user has proper port forwarding set up, but in future we'd do this ourselves and maybe parse out a device name after the adb:
This commit is contained in:
1 parent
80fbe84fb1
commit
4dc9857341
3 files changed
+25
-1
No files matched your search
@@ -477,6 +477,13 @@ extern "C" RENDERDOC_API uint32_t RENDERDOC_CC RENDERDOC_EnumerateRemoteTargets(
|
||||
if(host != NULL && host[0] != '\0')
|
||||
s = host;
|
||||
|
||||
if(!strncmp(host, "adb:", 4))
|
||||
{
|
||||
s = "127.0.0.1";
|
||||
|
||||
// could parse out an (optional) device name from host+4 here.
|
||||
}
|
||||
|
||||
// initial case is we're called with 0, start with the first port.
|
||||
// otherwise we're called with the last successful ident, so increment
|
||||
// before continuing to enumerate.
|
||||
|
||||
Reference in new issue
Block a user