Merge pull request #1 from XinyuKhan/XinyuKhan-patch-1

Update ClassLoader.h
This commit is contained in:
Xinyu Han 2024-12-02 22:00:22 +08:00 committed by GitHub
commit cb384be383
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -139,7 +139,7 @@ public:
}
}
void loadLibrary(const std::string& path, const std::string& manifest)
void loadLibrary(const std::string& path, const std::string& manifest, int flags = 0)
/// Loads a library from the given path, using the given manifest.
/// Does nothing if the library is already loaded.
/// Throws a LibraryLoadException if the library
@ -161,7 +161,7 @@ public:
li.refCount = 1;
try
{
li.pLibrary = new SharedLibrary(path);
li.pLibrary = new SharedLibrary(path, flags);
li.pManifest = new Manif();
std::string pocoBuildManifestSymbol("pocoBuildManifest");
pocoBuildManifestSymbol.append(manifest);