Exemplo n.º 1
0
 public GameDatabase(IGogLibrary gogLibrary, ISteamLibrary steamLibrary, IOriginLibrary originLibrary, IUplayLibrary uplayLibrary)
 {
     this.gogLibrary    = gogLibrary;
     this.steamLibrary  = steamLibrary;
     this.originLibrary = originLibrary;
     this.uplayLibrary  = uplayLibrary;
 }
Exemplo n.º 2
0
 public GameDatabase()
 {
     gogLibrary    = new GogLibrary();
     steamLibrary  = new SteamLibrary();
     originLibrary = new OriginLibrary();
     uplayLibrary  = new UplayLibrary();
 }
Exemplo n.º 3
0
 public GameDatabase(Settings settings, IGogLibrary gogLibrary, ISteamLibrary steamLibrary, IOriginLibrary originLibrary, IUplayLibrary uplayLibrary, IBattleNetLibrary battleNetLibrary)
 {
     AppSettings           = settings;
     this.gogLibrary       = gogLibrary;
     this.steamLibrary     = steamLibrary;
     this.originLibrary    = originLibrary;
     this.uplayLibrary     = uplayLibrary;
     this.battleNetLibrary = battleNetLibrary;
 }
Exemplo n.º 4
0
 public GameDatabase(Settings settings)
 {
     AppSettings      = settings;
     gogLibrary       = new GogLibrary();
     steamLibrary     = new SteamLibrary();
     originLibrary    = new OriginLibrary();
     uplayLibrary     = new UplayLibrary();
     battleNetLibrary = new BattleNetLibrary();
 }
Exemplo n.º 5
0
        public SteamGameStateMonitor(string id, ISteamLibrary steamLibrary)
        {
            this.id  = id;
            library  = steamLibrary;
            watchers = new List <FileSystemWatcher>();

            foreach (var folder in library.GetLibraryFolders())
            {
                var watcher = new FileSystemWatcher()
                {
                    NotifyFilter = NotifyFilters.LastWrite | NotifyFilters.FileName | NotifyFilters.DirectoryName,
                    Path         = Path.Combine(folder, "steamapps"),
                    Filter       = string.Format("appmanifest_{0}.acf", id)
                };

                watchers.Add(watcher);
            }
        }
Exemplo n.º 6
0
 public GameDatabase(Settings settings, string path, IGogLibrary gogLibrary, ISteamLibrary steamLibrary, IOriginLibrary originLibrary, IUplayLibrary uplayLibrary, IBattleNetLibrary battleNetLibrary)
     : this(settings, gogLibrary, steamLibrary, originLibrary, uplayLibrary, battleNetLibrary)
 {
     Path = path;
 }