コード例 #1
0
ファイル: Utils.cs プロジェクト: hananoki/BuildAssist
        /////////////////////////////////////////

        public static void SelectItemUpdate()
        {
            if (s_currentPlatform != null && s_currentPlatform.buildTargetGroup != P.i.selectBuildTargetGroup)
            {
                s_currentPlatform = null;
            }
            if (s_currentPlatform == null)
            {
                s_currentPlatform = P.GetSelectPlatform();
                //BMS.i.platformList.Add( m_currentPlatform );
            }
            if (s_currentPlatform.parameters.Count == 0)
            {
                if (s_currentPlatform.buildTargetGroup != BuildTargetGroup.Unknown)
                {
                    s_currentPlatform.AddParams("Debug");
                    s_currentPlatform.AddParams("Release");
                    s_currentPlatform.AddParams("Master");
                    s_changed = true;
                }
            }
            if (P.i.selectParamsIndex < 0)
            {
                P.i.selectParamsIndex = 0;
            }
            else if (s_currentPlatform.parameters.Count <= P.i.selectParamsIndex)
            {
                P.i.selectParamsIndex = s_currentPlatform.parameters.Count - 1;
            }
        }