10 files changed
+169
-10
No files matched your search
+3
-2
@@ -1,3 +1,4 @@
|
||||
#include <Mods/LoadLibrary.hpp>
|
||||
#include <Logging/Level.hpp>
|
||||
#include <Logging/Logger.hpp>
|
||||
#include <Logging/LoggerManager.hpp>
|
||||
@@ -36,7 +37,7 @@ namespace vl::Agent {
|
||||
return;
|
||||
}
|
||||
|
||||
dlopen(mods.at("VoidLoaderApi.vlmod").c_str(), RTLD_NOW | RTLD_GLOBAL);
|
||||
LoadLibrary(mods.at("VoidLoaderApi.vlmod").c_str(), true);
|
||||
mods.erase("VoidLoaderApi.vlmod");
|
||||
mods.erase("VoidLoader.vlmod");
|
||||
|
||||
@@ -134,7 +135,7 @@ extern "C" JNIEXPORT jint JNICALL Java_nativeAgentStart(JNIEnv* env, jclass claz
|
||||
for (auto& [name, path] : instance.m_mods)
|
||||
{
|
||||
instance.m_logger->trace("Loading mod: {}", name);
|
||||
loaded += instance.m_modloader->loadModule(path, instance.m_context);
|
||||
loaded += instance.m_modloader->loadModule(path, instance.m_context, false);
|
||||
}
|
||||
instance.m_logger->info("Mods loaded: {}, Starting", loaded);
|
||||
|
||||
|
||||
Reference in new issue
Block a user