44{
45 UnloadModules();
46
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}