1
0
mirror of synced 2024-11-24 15:50:16 +01:00

Removed debug prints

This commit is contained in:
WerWolv 2021-02-07 14:28:53 +01:00
parent 5b38c43b7e
commit 15bcf71aaf

View File

@ -18,24 +18,16 @@ namespace hex {
if (this->m_handle == nullptr)
return;
printf("Loaded plugin %s\n", path.data());
this->m_initializePluginFunction = reinterpret_cast<InitializePluginFunc>(dlsym(this->m_handle, symbolName.c_str()));
printf("Symbol %s at %p\n", symbolName.c_str(), this->m_initializePluginFunction);
}
Plugin::~Plugin() {
printf("Plugin unloaded\n");
dlclose(this->m_handle);
}
void Plugin::initializePlugin() const {
if (this->m_initializePluginFunction != nullptr) {
printf("Initializing plugin\n");
this->m_initializePluginFunction();
printf("Initialized plugin\n");
}
}