mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Detect ls errors that appear on stdout instead of stderr
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user