Пример #1
0
        public OriginLibrary(string fullPath, bool isMain = false)
        {
            FullPath      = fullPath;
            IsMain        = isMain;
            Type          = Enums.LibraryType.Origin;
            DirectoryInfo = new DirectoryInfo(fullPath);

            AllowedAppTypes.Add(Enums.LibraryType.Origin);
        }
Пример #2
0
        public SteamLibrary(string fullPath, bool isMain = false)
        {
            FullPath = fullPath;
            IsMain   = isMain;

            DirectoryList.Add("SteamApps", new DirectoryInfo(Path.Combine(FullPath, "SteamApps")));
            DirectoryList.Add("SteamBackups", new DirectoryInfo(Path.Combine(FullPath, "SteamBackups")));
            DirectoryList.Add("Common", new DirectoryInfo(Path.Combine(DirectoryList["SteamApps"].FullName, "common")));
            DirectoryList.Add("Download", new DirectoryInfo(Path.Combine(DirectoryList["SteamApps"].FullName, "downloading")));
            DirectoryList.Add("Workshop", new DirectoryInfo(Path.Combine(DirectoryList["SteamApps"].FullName, "workshop")));

            AllowedAppTypes.Add(LibraryType.Steam);
            AllowedAppTypes.Add(LibraryType.SLM);
        }