Detect ls errors that appear on stdout instead of stderr

This commit is contained in:
baldurk
2018-02-09 10:51:45 +00:00
parent 4f59cdb23d
commit f2bd4b0351
+5
View File
@@ -148,6 +148,11 @@ uint32_t StartAndroidPackageForCapture(const char *host, const char *package)
adbExecCommand(deviceID, "shell ls " + installedPath + "/lib/*/" RENDERDOC_ANDROID_LIBRARY)
.strStdout);
// some versions of adb/android return the error message on stdout, so try to detect those and
// clear the output.
if(RDCLib.size() < installedPath.size() || RDCLib.substr(0, installedPath.size()) != installedPath)
RDCLib.clear();
bool injectLibraries = true;
if(RDCLib.empty())