Exemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();


            GameFoldersForm gff = new GameFoldersForm();

            gff.ShowInTaskbar = true;
            gff.StartPosition = FormStartPosition.CenterScreen;

            bool   ccEnabled     = GetClips.Properties.Settings.Default.CustomContentEnabled;
            string customContent = GetClips.Properties.Settings.Default.CustomContentPath;
            string installDirs   = GetClips.Properties.Settings.Default.InstallDirs;
            string epsDisabled   = GetClips.Properties.Settings.Default.EPsDisabled;

            for (DialogResult dr = DialogResult.Retry; dr == DialogResult.Retry;)
            {
                gff.CCEnabled     = ccEnabled;
                gff.CustomContent = customContent;
                gff.InstallDirs   = installDirs;
                gff.EPsDisabled   = epsDisabled;
                dr = gff.ShowDialog();
            }
            GetClips.Properties.Settings.Default.CustomContentEnabled = FileTable.CustomContentEnabled = gff.CCEnabled;
            GetClips.Properties.Settings.Default.CustomContentPath    = FileTable.CustomContentPath = gff.CustomContent;
            GetClips.Properties.Settings.Default.InstallDirs          = GameFolders.InstallDirs = gff.InstallDirs;
            GetClips.Properties.Settings.Default.EPsDisabled          = epsDisabled;
            GetClips.Properties.Settings.Default.Save();

            FileTable.FileTableEnabled = true;

            NameMap.Reset();
        }