コード例 #1
0
ファイル: Core.cs プロジェクト: mattpk/OSUplayer
 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);
 }
コード例 #2
0
ファイル: Core.cs プロジェクト: mattpk/OSUplayer
 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);
 }
コード例 #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);
        }