From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Modules/LoadDylib.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Runtime/Modules/LoadDylib.h (limited to 'Runtime/Modules/LoadDylib.h') diff --git a/Runtime/Modules/LoadDylib.h b/Runtime/Modules/LoadDylib.h new file mode 100644 index 0000000..7e019d6 --- /dev/null +++ b/Runtime/Modules/LoadDylib.h @@ -0,0 +1,13 @@ +#ifndef LOADDYLIB_H +#define LOADDYLIB_H +#include + +std::string GetPathWithPlatformSpecificDllExtension(const std::string& path); +void* LoadDynamicLibrary (const std::string& absolutePath); +void* LoadAndLookupSymbol (const std::string& absolutePath, const std::string& name); +void UnloadDynamicLibrary (void* libraryReference); +void UnloadDynamicLibrary (const std::string& absolutePath); +bool LoadAndLookupSymbols (const char* path, ...); +void* LookupSymbol(void* libraryReference, const std::string& symbolName); + +#endif -- cgit v1.1-26-g67d0