Exemplo n.º 1
0
            public static void SetCCFolder(string _f)
            {
                try {
                    Path.GetFullPath(_f);

                    bool verified = true;
                    foreach (string req in new string[] {
                        "CCLocalLevels.dat", "CCGameManager.dat"
                    })
                    {
                        if (!File.Exists($"{_f}\\{req}"))
                        {
                            verified = false;
                        }
                    }

                    if (!verified)
                    {
                        throw new Exception("This does not appear to be a GeometryDash data folder.");
                    }

                    GDTools.SetCCPath(_f);

                    Program.MainForm.FullReload();
                } catch (Exception e) {
                    MessageBox.Show(e.ToString());
                }
            }