diff options
| author | JMC47 <JMC4789@gmail.com> | 2023-06-11 14:17:39 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-11 14:17:39 -0400 |
| commit | 5c0581e99057bca1d298861593c1d62333d95ace (patch) | |
| tree | c62215519df9f67bc50c7526b8a929e925dd5981 /Source/Core/Common/DynamicLibrary.cpp | |
| parent | bcd6e2e6dcf7c8171056b8c4c5e643d00e5a0bc9 (diff) | |
| parent | 2da7d16b7cf9a3844a4aa6005ede7926b31acf2d (diff) | |
Merge pull request #11867 from K0bin/adrenotools
Implement loading custom drivers on Android
Diffstat (limited to 'Source/Core/Common/DynamicLibrary.cpp')
| -rw-r--r-- | Source/Core/Common/DynamicLibrary.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/Core/Common/DynamicLibrary.cpp b/Source/Core/Common/DynamicLibrary.cpp index 039b0a034c..7871198dda 100644 --- a/Source/Core/Common/DynamicLibrary.cpp +++ b/Source/Core/Common/DynamicLibrary.cpp @@ -24,11 +24,22 @@ DynamicLibrary::DynamicLibrary(const char* filename) Open(filename); } +DynamicLibrary::DynamicLibrary(void* handle) +{ + m_handle = handle; +} + DynamicLibrary::~DynamicLibrary() { Close(); } +DynamicLibrary& DynamicLibrary::operator=(void* handle) +{ + m_handle = handle; + return *this; +} + std::string DynamicLibrary::GetUnprefixedFilename(const char* filename) { #if defined(_WIN32) |
