On Apple use GetLibraryFilename() to set libfile

Solves problem when injecting renderdoc into a process from an executable which is not renderdoccmd or qrenderdoc
This commit is contained in:
Jake Turner
2021-02-28 16:19:35 +00:00
committed by Baldur Karlsson
parent 87cb4e58b6
commit 004a731607
+1 -1
View File
@@ -754,7 +754,7 @@ rdcpair<ReplayStatus, uint32_t> Process::LaunchAndInjectIntoProcess(
// on macOS, the path must be absolute
#if ENABLED(RDOC_APPLE)
libfile = libpath + "/" + libfile;
FileIO::GetLibraryFilename(libfile);
#endif
rdcstr optstr = opts.EncodeAsString();