Пример #1
0
 bool activate(EngineCluster cluster)
 {
     if (cluster == null || cluster == Active)
     {
         return(false);
     }
     Deactivate();
     cluster.Enable();
     CFG.ActiveProfile.Update(VSL.Engines.All, true);
     Active = cluster;
     return(true);
 }
            bool activate(EngineCluster cluster)
            {
                if (cluster == null || cluster == Active)
                {
                    return(false);
                }
                Deactivate();
                cluster.Enable();
                CFG.ActiveProfile.Update(VSL.Engines.All, true);
//				Log("Activated: {}\nAll engines: {}\nProfile: {}", cluster, VSL.Engines.All, CFG.ActiveProfile);//debug
                Active = cluster;
                return(true);
            }