MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / initPlugins

Method initPlugins

src/Core/Engine/Engine.cpp:100–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98 }
99
100 void Engine::initPlugins()
101 {
102 for (const System::MountablePath& mountedPath : System::MountablePath::Paths())
103 {
104 Debug::Log->info("<Bindings> Checking Plugins on Mounted Path : {0}",
105 mountedPath.basePath);
106 System::Path cPluginPath = System::Path(mountedPath.basePath).add("Plugins");
107 if (Utils::File::directoryExists(cPluginPath.toString()))
108 {
109 for (const std::string& filename :
110 Utils::File::getFileList(cPluginPath.toString()))
111 {
112 const std::string pluginPath = cPluginPath.add(filename).toString();
113 const std::string pluginName = Utils::String::split(filename, ".")[0];
114 m_plugins.emplace_back(
115 std::make_unique<System::Plugin>(pluginName, pluginPath));
116 }
117 }
118 }
119 }
120
121 void Engine::initScene()
122 {

Callers 1

initMethod · 0.95

Calls 7

PathClass · 0.85
directoryExistsFunction · 0.85
getFileListFunction · 0.85
infoMethod · 0.80
splitFunction · 0.50
addMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected