1
0
mirror of synced 2024-12-18 10:35:53 +01:00
ImHex/tests/plugins/source/plugins.cpp
2024-06-22 12:57:13 +02:00

19 lines
411 B
C++

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