1
0
mirror of https://git.suyu.dev/suyu/suyu synced 2025-08-25 05:26:40 -05:00

common: dynamic_library: Add ctor for existing handle.

This commit is contained in:
bunnei
2023-02-18 22:05:58 -08:00
parent e9f35d3260
commit 32cf6beee3
2 changed files with 5 additions and 0 deletions

View File

@@ -20,6 +20,9 @@ public:
/// Automatically loads the specified library. Call IsOpen() to check validity before use.
explicit DynamicLibrary(const char* filename);
/// Initializes the dynamic library with an already opened handle.
explicit DynamicLibrary(void* handle_);
/// Moves the library.
DynamicLibrary(DynamicLibrary&&) noexcept;
DynamicLibrary& operator=(DynamicLibrary&&) noexcept;