1
0
mirror of synced 2024-12-18 18:45:53 +01:00
ImHex/tests/plugins/source/plugins.cpp

17 lines
391 B
C++

#include <hex/api/plugin_manager.hpp>
#include <hex/helpers/utils.hpp>
using namespace hex;
class PluginLoader {
public:
PluginLoader() {
for (const auto &dir : fs::getDefaultPaths(fs::ImHexPath::Plugins)) {
PluginManager::addLoadPath(dir);
}
PluginManager::loadLibraries();
PluginManager::load();
}
};
static PluginLoader pluginLoader;