| 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 | { |
no test coverage detected