mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Rename OS module loading function as it clashes with define on win32
This commit is contained in:
@@ -396,7 +396,7 @@ void Process::StartGlobalHook(const char *pathmatch, const char *logfile, const
|
||||
RDCUNIMPLEMENTED("Global hooking of all processes on linux");
|
||||
}
|
||||
|
||||
bool Process::LoadLibrary(const char *module)
|
||||
bool Process::LoadModule(const char *module)
|
||||
{
|
||||
return dlopen(module, RTLD_NOW) != NULL;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace Process
|
||||
uint32_t LaunchProcess(const char *app, const char *workingDir, const char *cmdLine);
|
||||
uint32_t LaunchAndInjectIntoProcess(const char *app, const char *workingDir, const char *cmdLine,
|
||||
const char *logfile, const CaptureOptions *opts, bool waitForExit);
|
||||
bool LoadLibrary(const char *module);
|
||||
bool LoadModule(const char *module);
|
||||
void *GetFunctionAddress(const char *module, const char *function);
|
||||
uint32_t GetCurrentPID();
|
||||
};
|
||||
|
||||
@@ -566,7 +566,7 @@ void Process::StartGlobalHook(const char *pathmatch, const char *logfile, const
|
||||
#endif
|
||||
}
|
||||
|
||||
bool LoadLibrary(const char *module)
|
||||
bool Process::LoadModule(const char *module)
|
||||
{
|
||||
HMODULE mod = GetModuleHandleA(module);
|
||||
if(mod != NULL)
|
||||
|
||||
Reference in New Issue
Block a user