[DON'T WORK] added dependent modules ....

This commit is contained in:
2024-12-17 13:57:21 +08:00
parent d1c3934beb
commit 34846acae0
12 changed files with 150 additions and 23 deletions

View File

@@ -28,7 +28,27 @@ public:
if(!gmm)
return(nullptr);
GraphModule *gm=new T(gmm);
Map<AnsiIDName,GraphModule *> dgm_map;
//检查依赖模块
{
const auto &dependent_modules=T::GetDependentModules();
if(!dependent_modules.IsEmpty())
{
for(const AnsiIDName &name:dependent_modules)
{
GraphModule *dgm=gmm->GetModule(name,true);
if(!dgm)
return(nullptr);
dgm_map.Add(name,dgm);
}
}
}
GraphModule *gm=new T(gmm,dgm_map);
if(!gm->Init())
{