public IEnumerator ConvertMultipleSongs(string folderPath)
        {
            string[] paths = Directory.GetDirectories(folderPath);
            core.uiManager.ProgressBarSetActive(true);
            core.uiManager.ProgressBarSetTitle("Importing songs");
            int i   = 0;
            int max = paths.Length;

            foreach (var path in paths)
            {
                try {
                    SongLoader.ConvertSong(path, core);
                }
                catch (Exception e) {
                    Console.WriteLine(e);
                }

                i++;
                core.uiManager.ProgressBarSetValue(1f / max * i);
                core.uiManager.ProgressBarSetTitle("Importing songs " + i + "/" + max);
                yield return(i);
            }
            core.uiManager.ProgressBarSetActive(false);
            reloadSongs = true;
        }
 private void OpenBeatSaberSong()
 {
     StandaloneFileBrowser.OpenFolderPanelAsync("Open beatsaber Beatmap", "", true, delegate(string[] strings) {
         foreach (var path in strings)
         {
             SongLoader.ConvertSong(path, core);
         }
     });
     reloadSongs = true;
 }