Ejemplo n.º 1
0
 public static bool SetSet(int value, bool p = false)
 {
     TmpSet = Allsets[PlayList[value]];
     if (!TmpSet.Check())
     {
         NotifySystem.Showtip(1000, LanguageManager.Get("OSUplayer"), LanguageManager.Get("Core_Missing_Song_Text"));
         Remove(TmpSet.GetHash());
         return(true);
     }
     if (!TmpSet.Detailed)
     {
         TmpSet.GetDetail();
     }
     if (p)
     {
         Tmp2Current(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
 public static bool SetMap(int value, bool p = false)
 {
     TmpBeatmap = TmpSet.GetBeatmaps()[value];
     if (!TmpBeatmap.Detailed)
     {
         TmpBeatmap.GetDetail();
     }
     if (!File.Exists(TmpBeatmap.Audio))
     {
         NotifySystem.Showtip(1000, LanguageManager.Get("OSUplayer"), LanguageManager.Get("Core_Missing_Song_Text"));
         Remove(TmpSet.GetHash());
         return(true);
     }
     if (p)
     {
         Tmp2Current(false);
     }
     return(false);
 }
Ejemplo n.º 3
0
        public static bool SetSet(int value, bool p = false)
        {
            TmpSet = Allsets[PlayList[value]];
            if (!TmpSet.Check())
            {
                NotifySystem.Showtip(1000, LanguageManager.Get("OSUplayer"), LanguageManager.Get("Core_Missing_Song_Text"));
                Remove(TmpSet.GetHash());
#if THROW
                throw new Exception("Set net found, text is " + TmpSet.location);
#endif
                return(true);
            }
            if (!TmpSet.Detailed)
            {
                TmpSet.GetDetail();
            }
            if (p)
            {
                Tmp2Current(true);
            }
            return(false);
        }