TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ LoadModules()

void ModuleManager::LoadModules ( )
private

Definition at line 43 of file ModuleManager.cpp.

44{
45 UnloadModules();
46 // iterate through all directories in the modules folder
47 std::string modulesFolder = appState->constants.modulesDir + PATH_SEPARATOR;
48 for (auto &p : std::filesystem::directory_iterator(modulesFolder))
49 {
50 std::string path = p.path().string();
51 if (p.is_directory() && FileExists(path + PATH_SEPARATOR "module" MODULE_EXT ))
52 {
53 LoadModule(path + PATH_SEPARATOR "module" MODULE_EXT);
54 }
55 }
56}