TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ InstallModule()

void ModuleManager::InstallModule ( std::string  path)

Definition at line 113 of file ModuleManager.cpp.

114{
115 // extract zip file to modules folder
116 zip_extract(path.data(), (appState->constants.modulesDir + PATH_SEPARATOR + GenerateId(32)).data(), [](const char* f, void* arg){return 1;}, 0);
117 // load module
118 LoadModule(appState->constants.modulesDir + PATH_SEPARATOR + GenerateId(32) + PATH_SEPARATOR "module" MODULE_EXT);
119}