Ejemplo n.º 1
0
        public string this[string columnName]
        {
            get
            {
                if (columnName == nameof(InstallDir))
                {
                    return(SelectedGame?.ValidateGamePath(InstallDir));
                }

                return(null);
            }
        }
Ejemplo n.º 2
0
        private void LoadGameData()
        {
            if (SelectedGame == null)
            {
                return;
            }

            InstallDir = _config[SelectedGame.Id].InstallDir;
            if (string.IsNullOrWhiteSpace(InstallDir) && SelectedGame.DefaultPaths != null)
            {
                foreach (string defaultPath in SelectedGame.DefaultPaths)
                {
                    if (SelectedGame.ValidateGamePath(defaultPath) == null)
                    {
                        InstallDir = defaultPath;
                        break;
                    }
                }
            }

            CheckIfGameIsPatched();
        }