mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
Fix compilation of disabled custom APK location codepath
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user