Skip to content

Commit

Permalink
update(plugin-loader): Update dlmount
Browse files Browse the repository at this point in the history
  • Loading branch information
skuzzis committed Nov 16, 2023
1 parent 6cb1c49 commit 48c06c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Plugins/inc/Plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 48c06c6

Please sign in to comment.