BOOL ModuleManager::Shutdown() { BOOL ret = TRUE; u32 len = arModule.Size() - 1; for (s32 i = len; i >= 0; i--) { IModule *obj = arModule[i]; ret = ret && (obj->Shutdown() || !obj->IsRequired()); } return ret; }
BOOL ModuleManager::Reset() { BOOL ret = TRUE; u32 len = arModule.Size(); for (u32 i = 0; i < len; i++) { IModule *obj = arModule[i]; ret = ret && (obj->Reset() || !obj->IsRequired()); } return ret; }