Exemple #1
0
        private void OnLoadReflexReplays()
        {
            string replaysPath = null;

            try
            {
                replaysPath = Reflex.GetReflexReplaysFolder();
            }
            catch (Exception exception)
            {
                UmmApp.Instance.LogError("Caught an exception while getting the Reflex replays folder: " + exception.Message);
                return;
            }

            if (replaysPath == null)
            {
                return;
            }

            var allReplays     = Directory.GetDirectories(replaysPath, "*", SearchOption.TopDirectoryOnly);
            var allReplaysList = new List <string>();

            allReplaysList.AddRange(allReplays);

            AddJobs(new List <string>(), allReplaysList);
        }
Exemple #2
0
 private void OnOpenReflexReplays()
 {
     try
     {
         var replaysPath = Reflex.GetReflexReplaysFolder();
         Process.Start(replaysPath);
     }
     catch (Exception exception)
     {
         UmmApp.Instance.LogError("Caught an exception while getting/opening the Reflex replays folder: " + exception.Message);
     }
 }