MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / load

Method load

source/MaaFramework/Global/PluginMgr.cpp:19–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17} _;
18
19bool PluginMgr::load(const std::filesystem::path& library_path)
20{
21 LogFunc << VAR(library_path);
22
23 if (std::filesystem::is_directory(library_path)) {
24 bool ret = false;
25 for (auto& entry : std::filesystem::recursive_directory_iterator(library_path)) {
26 ret |= load_and_parse(std::filesystem::absolute(entry.path()));
27 }
28
29 return ret;
30 }
31 else {
32 return load_and_parse(library_dir() / library_path) || load_and_parse(library_path);
33 }
34}
35
36std::optional<boost::dll::shared_library> PluginMgr::load_dll(const std::filesystem::path& library_path)
37{

Callers 3

MaaGlobalLoadPluginFunction · 0.45
DefaultPluginsLoaderFunction · 0.45
load_dllMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected