Example #1
0
 public List<PortableSteam.Interfaces.General.ISteamApps.App> getAppList()
 {
     List<PortableSteam.Interfaces.General.ISteamApps.App> appList = new List<PortableSteam.Interfaces.General.ISteamApps.App>();
     string[] lines = File.ReadAllLines("./steamapps.txt");
     foreach (string line in lines)
     {
         string[] parts = line.Split('=');
         if (parts.Length == 1) { continue; }
         PortableSteam.Interfaces.General.ISteamApps.App tmp = new PortableSteam.Interfaces.General.ISteamApps.App();
         tmp.AppID = int.Parse(parts[0]);
         tmp.Name = parts[1];
         appList.Add(tmp);
     }
     return appList;
 }
Example #2
0
        public List <PortableSteam.Interfaces.General.ISteamApps.App> getAppList()
        {
            List <PortableSteam.Interfaces.General.ISteamApps.App> appList = new List <PortableSteam.Interfaces.General.ISteamApps.App>();

            string[] lines = File.ReadAllLines("./steamapps.txt");
            foreach (string line in lines)
            {
                string[] parts = line.Split('=');
                if (parts.Length == 1)
                {
                    continue;
                }
                PortableSteam.Interfaces.General.ISteamApps.App tmp = new PortableSteam.Interfaces.General.ISteamApps.App();
                tmp.AppID = int.Parse(parts[0]);
                tmp.Name  = parts[1];
                appList.Add(tmp);
            }
            return(appList);
        }