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:
baldurk committed 2016-09-12 20:05:51 +02:00
1 parent 80fbe84fb1
commit 4dc9857341
3 files changed
+25 -1

No files matched your search

+7
View File
@@ -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.