From 48c06c6f40a3330096a8e108072a016fecea6f51 Mon Sep 17 00:00:00 2001 From: skuzzis Date: Thu, 16 Nov 2023 21:54:59 +0200 Subject: [PATCH] update(plugin-loader): Update dlmount --- src/components/Plugins/inc/Plugin.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Plugins/inc/Plugin.h b/src/components/Plugins/inc/Plugin.h index 1f6b43b5..8869bdf9 100644 --- a/src/components/Plugins/inc/Plugin.h +++ b/src/components/Plugins/inc/Plugin.h @@ -54,8 +54,7 @@ class Plugin void LoadPlugin() { - this->m_hModule = dlmount(WIN_LINUX(this->m_path.c_str(), this->m_path.c_str())); - PRINTF("LoadPlugin", "dlmount: %s, %s\n", this->m_path.c_str(), std::filesystem::current_path().string().c_str()); + this->m_hModule = dlmount(WIN_LINUX(this->m_path.c_str(), string_format("%s/%s", std::filesystem::current_path().string().c_str(), this->m_path.c_str()).c_str())); for (uint16 i = 0; i < ARR_SIZE(funcsToLoad); i++) this->RegisterFunction("Internal_" + funcsToLoad[i]);