コード例 #1
0
        /// <summary>
        /// Gets whether AI is enabled.
        /// </summary>
        /// <returns><c>true</c> if AI is enabled;
        /// <c>false</c> otherwise.</returns>
        public override bool IsActive()
        {
            string strFalloutIniPath = GameMode.SettingsFiles.IniPath;

            if (!File.Exists(strFalloutIniPath))
            {
                return(false);
            }
            return(IniMethods.GetPrivateProfileInt32("Archive", "bInvalidateOlderFiles", 0, strFalloutIniPath) != 0);
        }
コード例 #2
0
        /// <summary>
        /// Gets whether AI is enabled.
        /// </summary>
        /// <returns><c>true</c> if AI is enabled;
        /// <c>false</c> otherwise.</returns>
        public override bool IsActive()
        {
            string strFalloutIniPath = GameMode.SettingsFiles.IniPath;

            if (!File.Exists(strFalloutIniPath))
            {
                return(false);
            }
            List <string> bsas          = new List <string>((IniMethods.GetPrivateProfileString("Archive", "SArchiveList", null, strFalloutIniPath) ?? "").Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries));
            Int32         intInvalidate = IniMethods.GetPrivateProfileInt32("Archive", "bInvalidateOlderFiles", 0, strFalloutIniPath);

            return(bsas.Contains(AI_BSA) || (intInvalidate != 0));
        }