DynamicLibrary: Add patch to versioned filename

This commit is contained in:
Stenzek
2024-07-28 19:00:07 +10:00
parent 40356fc381
commit 876f212685
2 changed files with 14 additions and 8 deletions

View File

@ -33,10 +33,10 @@ public:
/// Returns the specified library name in platform-specific format.
/// Major/minor versions will not be included if set to -1.
/// If libname already contains the "lib" prefix, it will not be added again.
/// Windows: LIBNAME-MAJOR-MINOR.dll
/// Linux: libLIBNAME.so.MAJOR.MINOR
/// Mac: libLIBNAME.MAJOR.MINOR.dylib
static std::string GetVersionedFilename(const char* libname, int major = -1, int minor = -1);
/// Windows: LIBNAME-MAJOR-MINOR-PATCH.dll
/// Linux: libLIBNAME.so.MAJOR.MINOR.PATCH
/// Mac: libLIBNAME.MAJOR.MINOR.PATCH.dylib
static std::string GetVersionedFilename(const char* libname, int major = -1, int minor = -1, int patch = -1);
/// Returns true if a module is loaded, otherwise false.
bool IsOpen() const { return m_handle != nullptr; }