Пример #1
0
        public static SteamManifest Load(string path)
        {
            using (var sr = new StreamReader(path))
            {
                string nameLine = sr.ReadLine();
                SteamManifestSection mainSection = ReadSection(nameLine, sr);

                return(new SteamManifest(path, mainSection.Name, mainSection.Elements));
            }
        }
Пример #2
0
        public static async Task <SteamManifest> LoadAsync(string path)
        {
            using (var sr = new StreamReader(path))
            {
                string nameLine = await sr.ReadLineAsync().ConfigureAwait(false);

                SteamManifestSection mainSection = await ReadSectionAsync(nameLine, sr);

                return(new SteamManifest(path, mainSection.Name, mainSection.Elements));
            }
        }