Example #1
0
        private bool GetSMPFolder()
        {
            MessageBox.Show("You will be asked to select a folder.\nSelect the folder that contains your Super Mario Party dump (Archive folder should be present).");

            FolderBrowserDialog dialog = new FolderBrowserDialog();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                if (!Filesystem.DoesFolderExist(dialog.SelectedPath + "/Archive"))
                {
                    MessageBox.Show("Invalid folder, does not contain Archive!");
                    treeView1.Enabled = false;
                    return(false);
                }
                else
                {
                    Settings.Default.folderPath = dialog.SelectedPath;
                    loadingLabel.Text           = "New folder assigned!";
                    treeView1.Enabled           = true;
                    return(true);
                }
            }
            else
            {
                treeView1.Enabled = false;
                return(false);
            }
        }