mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
ui: Added API to add custom layouts, imhex application and api cleanup
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#include "helpers/plugin_manager.hpp"
|
||||
|
||||
#include <hex/helpers/logger.hpp>
|
||||
#include <hex/helpers/paths.hpp>
|
||||
|
||||
#include <filesystem>
|
||||
#include <dlfcn.h>
|
||||
|
||||
namespace hex {
|
||||
|
||||
@@ -89,10 +89,15 @@ namespace hex {
|
||||
this->m_setImGuiContextFunction(ctx);
|
||||
}
|
||||
|
||||
const fs::path &Plugin::getPath() const {
|
||||
const fs::path& Plugin::getPath() const {
|
||||
return this->m_path;
|
||||
}
|
||||
|
||||
void* Plugin::getPluginFunction(const std::string &pluginName, const std::string &symbol) {
|
||||
auto symbolName = hex::format(symbol.data(), pluginName.length(), pluginName.data());
|
||||
return dlsym(this->m_handle, symbolName.c_str());
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool PluginManager::load(const fs::path &pluginFolder) {
|
||||
|
||||
Reference in New Issue
Block a user