예제 #1
0
 public GameDatabase(IGogLibrary gogLibrary, ISteamLibrary steamLibrary, IOriginLibrary originLibrary, IUplayLibrary uplayLibrary)
 {
     this.gogLibrary    = gogLibrary;
     this.steamLibrary  = steamLibrary;
     this.originLibrary = originLibrary;
     this.uplayLibrary  = uplayLibrary;
 }
예제 #2
0
 public GameDatabase()
 {
     gogLibrary    = new GogLibrary();
     steamLibrary  = new SteamLibrary();
     originLibrary = new OriginLibrary();
     uplayLibrary  = new UplayLibrary();
 }
예제 #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;
 }
예제 #4
0
 public GameDatabase(Settings settings)
 {
     AppSettings      = settings;
     gogLibrary       = new GogLibrary();
     steamLibrary     = new SteamLibrary();
     originLibrary    = new OriginLibrary();
     uplayLibrary     = new UplayLibrary();
     battleNetLibrary = new BattleNetLibrary();
 }
예제 #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);
            }
        }
예제 #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;
 }