2024-02-26 20:51:08 +01:00
|
|
|
#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);
|
|
|
|
}
|
|
|
|
|
2024-03-13 19:49:04 +01:00
|
|
|
PluginManager::loadLibraries();
|
2024-02-26 20:51:08 +01:00
|
|
|
PluginManager::load();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
static PluginLoader pluginLoader;
|