コード例 #1
0
        public static string[] GetDataFromId(string[] registryData, int id, bool remplaceTags = true)
        {
            string noFormat = registryData[id];

            if (noFormat != null && noFormat != "")
            {
                string[] values = noFormat.Split('~');

                string title = values[0];
                string path  = values[1];
                string args  = values[2];

                if (remplaceTags)
                {
                    path = path.Replace("[SDK_FOLDER]", Framework.GetCRYENGINELocation());
                }

                string[] finalReturn = { title, path, args };
                return(finalReturn);
            }
            else
            {
                return(null);
            }
        }
コード例 #2
0
        public MainWindow()
        {
            InitializeComponent();

            m_framework       = new Framework(consoleTextbox);
            m_registryManager = new CRegistryManager();

            this.AllowDrop  = true;
            this.DragEnter += new DragEventHandler(MainWindow_DragEnter);
            this.DragDrop  += new DragEventHandler(MainWindow_DragDrop);

            #if DEBUG
            this.TopMost = false;
            this.Text    = APP_TITLE_NAME + " - DEV";
            #endif

            //Use registry settings
            if (m_registryManager.m_customPathInput == "")
            {
                customPath.Text = Framework.GetCRYENGINELocation();
            }
            else
            {
                customPath.Text = m_registryManager.m_customPathInput;
            }

            m_customSlotData = CRegistryManager.GetCustomSlots();
            SetCustomSlots();

            this.Text = APP_TITLE_NAME;

            Framework.Log(APP_TITLE_NAME + " ready!");
        }