mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
Load wrapped library early in case of Android
On newer Android it is not possible to use the LD_PRELOAD functionality. The target application should be directly linked with the RenderDoc library. However in that case we also need to load the target library early, so a simple implementation for the PosixHookLibrary is added.
This commit is contained in:
committed by
Baldur Karlsson
parent
b37a01d8ad
commit
386c830b1d
@@ -24,10 +24,13 @@
|
||||
|
||||
#include "os/posix/posix_hook.h"
|
||||
|
||||
#include <dlfcn.h>
|
||||
|
||||
void PosixHookInit()
|
||||
{
|
||||
}
|
||||
|
||||
void PosixHookLibrary(const char *name, dlopenCallback cb)
|
||||
{
|
||||
}
|
||||
cb(dlopen(name, RTLD_NOW));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user