Esempio n. 1
0
        public static bool smethod_13(bool bool_0)
        {
            int num = (int)RadMessageBox.Show("Please select a location to store your games. Note : it is not recommended to chose a location such as 'Program Files' since it requires Admin privileges.");
            CommonOpenFileDialog commonOpenFileDialog1 = new CommonOpenFileDialog();

            commonOpenFileDialog1.IsFolderPicker = true;
            commonOpenFileDialog1.Title          = "Please chose where to store your games.";
            CommonOpenFileDialog commonOpenFileDialog2 = commonOpenFileDialog1;

            while (commonOpenFileDialog2.ShowDialog() != CommonFileDialogResult.Cancel)
            {
                if (GClass6.smethod_2(commonOpenFileDialog2.FileName))
                {
                    DirectoryInfo directoryInfo = new DirectoryInfo(commonOpenFileDialog2.FileName);
                    string        str           = commonOpenFileDialog2.FileName;
                    if (directoryInfo.Name == "DATA" || directoryInfo.Name == "DATA_3DS")
                    {
                        str = directoryInfo.Parent.FullName;
                    }
                    Settings.Default.Path = str;
                    Settings.Default.Save();
                    return(true);
                }
            }
            return(!bool_0);
        }
Esempio n. 2
0
        public static void smethod_2()
        {
            if (!Settings.Default.Path.Contains("Program Files") || !Settings.Default.ShowProgramFilesWarning)
            {
                return;
            }
            int num = (int)RadMessageBox.Show("It appears you have chosen to store your games in Program Files. This could lead to a number of issues since this is a restricted location. It is advised that you chose another location which does not require admin privileges such as your personnal folder.");

            switch (RadMessageBox.Show("Would you like to set a new location now (strongly recommended)? Chosing cancel will disable future warnings.", "Problem detected", MessageBoxButtons.YesNoCancel))
            {
            case DialogResult.Cancel:
                Settings.Default.ShowProgramFilesWarning = false;
                Settings.Default.Save();
                break;

            case DialogResult.Yes:
                string str1 = Path.Combine(Settings.Default.Path, "DATA");
                string str2 = Path.Combine(Settings.Default.Path, "DATA_3DS");
                do
                {
                    ;
                }while (!Class97.smethod_13(true) || !GClass6.smethod_2(Settings.Default.Path));
                if (Directory.Exists(str1))
                {
                    Class97.smethod_8(str1, Settings.Default.Path);
                }
                if (!Directory.Exists(str2))
                {
                    break;
                }
                Class97.smethod_8(str2, Settings.Default.Path);
                break;
            }
        }
Esempio n. 3
0
        public static bool smethod_12(bool bool_0)
        {
            CommonOpenFileDialog commonOpenFileDialog1 = new CommonOpenFileDialog();

            commonOpenFileDialog1.Title          = "Please chose where to store extracted games.";
            commonOpenFileDialog1.IsFolderPicker = true;
            CommonOpenFileDialog commonOpenFileDialog2 = commonOpenFileDialog1;

            while (commonOpenFileDialog2.ShowDialog() != CommonFileDialogResult.Cancel)
            {
                if (GClass6.smethod_2(commonOpenFileDialog2.FileName))
                {
                    Settings.Default.ExtractFolder = commonOpenFileDialog2.FileName;
                    Settings.Default.Save();
                    return(true);
                }
            }
            return(!bool_0);
        }