Exemplo n.º 1
0
 private void AddPaths(ObservableCollection <string> pathsInternal)
 {
     if (Gog.Exisit())
     {
         _pathsInternal.Add("GoG Games Detected");
     }
     if (Origin.Exist())
     {
         _pathsInternal.Add("Origin Games Detected");
     }
     if (Uplay.Exist())
     {
         _pathsInternal.Add("Uplay Games Detected");
     }
     if (Battlenet.Exist())
     {
         _pathsInternal.Add("Battle.net Games Detected");
     }
     if (Desura.Exist())
     {
         _pathsInternal.Add("Desura Games Detected");
     }
     if (Custom.Exist())
     {
         _pathsInternal.Add("Custom Game Paths Detected");
     }
     if (Nexon.Exist())
     {
         _pathsInternal.Add("Nexon Games Detected");
     }
 }
Exemplo n.º 2
0
        private static List <string> GetAddtionalGames()
        {
            var gameDirs = new List <string>();

            if (Gog.Exisit())
            {
                gameDirs.AddRange(Gog.GetGames());
            }
            if (Origin.Exist())
            {
                gameDirs.AddRange(Origin.GetGames());
            }
            if (Uplay.Exist())
            {
                gameDirs.AddRange(Uplay.GetGames());
            }
            if (Battlenet.Exist())
            {
                gameDirs.AddRange(Battlenet.GetGames());
            }
            if (Desura.Exist())
            {
                gameDirs.AddRange(Desura.GetGames());
            }
            if (Custom.Exist())
            {
                gameDirs.AddRange(Custom.GetGames());
            }
            if (Gamestop.Exist())
            {
                gameDirs.AddRange(Gamestop.GetGames());
            }
            if (Nexon.Exist())
            {
                gameDirs.AddRange(Nexon.GetGames());
            }
            return(gameDirs);
        }