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

19 lines
411 B
C++
Raw Normal View History

#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;