Fix compilation of disabled custom APK location codepath

This commit is contained in:
baldurk
2020-01-07 13:34:55 +00:00
parent 46a70a6c5f
commit 9950d8dbf3
+16 -10
View File
@@ -258,18 +258,24 @@ ReplayStatus InstallRenderDocServer(const rdcstr &deviceID)
rdcarray<rdcstr> paths;
#if defined(RENDERDOC_APK_PATH)
string customPath(RENDERDOC_APK_PATH);
RDCLOG("Custom APK path: %s", customPath.c_str());
if(FileIO::IsRelativePath(customPath))
customPath = libDir + "/" + customPath;
if(customPath.back() != '/'))
customPath += '/';
paths.push_back(customPath);
rdcstr customPath(RENDERDOC_APK_PATH);
#else
rdcstr customPath;
#endif
if(!customPath.empty())
{
RDCLOG("Custom APK path: %s", customPath.c_str());
if(FileIO::IsRelativePath(customPath))
customPath = libDir + "/" + customPath;
if(customPath.back() != '/')
customPath += '/';
paths.push_back(customPath);
}
rdcstr suff = GetPlainABIName(abis[0]);
paths.push_back(libDir + "/plugins/android/"); // Windows install