예제 #1
0
        private void loadFiles()
        {
            bool gotFiles = true;

            //pic is osu/data/bt/[setId]l.jpg

            if (File.Exists(osuFolder + "collection.db"))
            {
                CollectionDB.ReadCollectionDB();
            }
            else
            {
                gotFiles = false;
            }

            if (File.Exists(osuFolder + "osu!.db"))
            {
                OsuDB.ReadOsuDB(osuFolder + "osu!.db");
            }
            else
            {
                gotFiles = false;
            }

            if (!gotFiles)
            {
                MessageBox.Show("Could not find osu files, please select your osu path manually", "Oops!");
                lastLoadSuccess = false;
            }
            else
            {
                lastLoadSuccess = true;
            }
        }