Exemplo n.º 1
0
        public static void ReloadSongList()
        {
            needRefresh                     = false;
            SongList.sFirstTime             = true;
            SongList.OnSongListLoaded.mDone = false;
            SongList.SongSourceDirs         = new Il2CppSystem.Collections.Generic.List <SongList.SongSourceDir>();
            SongList.AddSongSearchDir(Application.dataPath, downloadsDirectory);
            SongList.I.StartAssembleSongList();
            SongSelect songSelect = GameObject.FindObjectOfType <SongSelect>();

            if (songSelect != null)
            {
                SongList.OnSongListLoaded.On(new Action(() => { songSelect.ShowSongList(); }));
            }

            if (songDataLoaderInstalled)
            {
                SongDataLoader.ReloadSongData();
                MelonLogger.Log("Song Data Reloaded");
            }

            DebugText("Reloading Songs");
        }
Exemplo n.º 2
0
 private static void SafeDataLoaderReload()
 {
     SongDataLoader.ReloadSongData();
     MelonLogger.Msg("Song Data Reloaded");
 }