예제 #1
0
        /// <summary>
        /// Gets the confirmed installation path of the specified game mode.
        /// </summary>
        /// <remarks>
        /// This will return <c>null</c> until an installation path has been accepted or overridden for the
        /// specified game mode.
        /// </remarks>
        /// <param name="p_strGameModeId">The id of the game mode for which to return the confirmed installation path.</param>
        /// <returns>The confirmed installation path of the specified game mode.</returns>
        public string GetFinalPath(string p_strGameModeId)
        {
            GameInstallData gidData = m_lstFoundGameModes.Find(d => d.GameMode.ModeId.Equals(p_strGameModeId));

            if (gidData != null)
            {
                return(gidData.GameInstallPath);
            }
            return(null);
        }
예제 #2
0
        /// <summary>
        /// Determines of the installation path for the specified game mode has been found.
        /// </summary>
        /// <remarks>
        /// This returns true if an installation path for the specified ame mode has been accepted, or if
        /// one one specified useing <see cref="Override(string,string)"/>.
        /// </remarks>
        /// <param name="p_strGameModeId">the id of the game mode for which it is to be determined if the installation path has been found.</param>
        /// <returns><c>true</c> if the installation path of the specified game mode has been found;
        /// <c>false</c> otherwise.</returns>
        public bool IsFound(string p_strGameModeId)
        {
            GameInstallData gidData = m_lstFoundGameModes.Find(d => d.GameMode.ModeId.Equals(p_strGameModeId));

            return(gidData != null);
        }