Start/Shutdown Android server from RemoteManager dialog.

ANativeActivity_finish when renderdoccmd() returns.
This commit is contained in:
Michael Rennie
2017-06-12 16:47:41 +01:00
committed by Baldur Karlsson
parent 53c0c20c8a
commit 70f55a1458
5 changed files with 24 additions and 5 deletions
@@ -172,7 +172,7 @@ void PersistantConfig::AddAndroidHosts()
{
for(int i = RemoteHosts.count() - 1; i >= 0; i--)
{
if(RemoteHosts[i]->Hostname.startsWith(lit("adb:")))
if(RemoteHosts[i]->IsHostADB())
delete RemoteHosts.takeAt(i);
}
@@ -193,6 +193,8 @@ void PersistantConfig::AddAndroidHosts()
{
RemoteHost *host = new RemoteHost();
host->Hostname = lit("adb:") + hostName;
// Just a command to display in the GUI and allow Launch() to be called.
host->RunCommand = lit("org.renderdoc.renderdoccmd");
RemoteHosts.push_back(host);
}
}