Esempio n. 1
0
        public KleiGame GetGame()
        {
            KleiGame game = null;

            foreach (KleiGame instance in this.games)
            {
                if (instance.IsMainGame())
                {
                    game = instance;
                    break;
                }
            }

            return(game);
        }
Esempio n. 2
0
        public void LoadGame(KleiGame game)
        {
            Logger.Info(string.Format("LoadGame: [#{0}] {1}", game.GetID(), game.GetName()));

            IReadOnlyList <SteamApp> apps = software.SteamApps;

            foreach (SteamApp app in apps)
            {
                if (game.GetID() == app.AppID)
                {
                    game.SetPath(app.InstallDir);
                }
            }

            games.Add(game);
        }