mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-23 20:41:13 +00:00
android: Attempt to call adb directly if path not provided
This commit is contained in:
1 parent
f60968b103
commit
5863607ba2
1 file changed
+10
@@ -544,6 +544,16 @@ bool IsHostADB(const char *hostname)
|
||||
string adbExecCommand(const string &args)
|
||||
{
|
||||
string adbExePath = RenderDoc::Inst().GetConfigSetting("adbExePath");
|
||||
if(adbExePath.empty())
|
||||
{
|
||||
static bool warnPath = true;
|
||||
if(warnPath)
|
||||
{
|
||||
RDCWARN("adbExePath not set, attempting to call 'adb' in working env");
|
||||
warnPath = false;
|
||||
}
|
||||
adbExePath.append("adb");
|
||||
}
|
||||
Process::ProcessResult result;
|
||||
Process::LaunchProcess(adbExePath.c_str(), "", args.c_str(), &result);
|
||||
RDCLOG("COMMAND: adb %s", args.c_str());
|
||||
|
||||
Reference in new issue
Block a user