feat: Allow extra plugin folders to be specified with the --plugins cli option

This commit is contained in:
WerWolv
2024-01-22 12:53:07 +01:00
parent f2bab005d0
commit 60e7362f4e
6 changed files with 45 additions and 23 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <functional>
#include <list>
#include <span>
#include <string>
@@ -98,10 +99,11 @@ namespace hex {
static bool load(const std::fs::path &pluginFolder);
static void unload();
static void reload();
static void initializeNewPlugins();
static void addPlugin(const std::string &name, PluginFunctions functions);
static std::vector<Plugin> &getPlugins();
static std::list<Plugin> &getPlugins();
static std::vector<std::fs::path> &getPluginPaths();
static bool isPluginLoaded(const std::fs::path &path);