Exemple #1
0
        public bool IsLauncherTaskComplete()
        {
            if (m_LauncherTasks == null || m_LauncherTasks.Length == 0)
            {
                return(true);
            }

            m_NumCompletedTasks = 0;

            for (int i = 0; i < m_LauncherTasks.Length; i++)
            {
                LauncherTask launcherTask = m_LauncherTasks [i];

                if (!launcherTask.m_bRunning)
                {
                    launcherTask.Run();
                }

                if (launcherTask.IsError())
                {
                    // show error
                    break;
                }
                else if (!launcherTask.IsDone())
                {
                    return(false);
                }
                else
                {
                    m_NumCompletedTasks++;
                }
            }

            return(true);
        }
Exemple #2
0
 public void WaitOnTask(LauncherTask patchDownloadTask)
 {
     WaitOn.Add(patchDownloadTask);
 }