コード例 #1
0
ファイル: QualityLoader.cs プロジェクト: Cidolfas/Aster
		protected void CreateNew(string line)
		{
			CloseCurrent();

			string[] chunks = line.Split(' ');
			if (chunks.Length < 2)
			{
				Data.Log("ERROR: Trying to create quality without a name!");
				return;
			}

			currentQuality = new Quality();
			currentQuality.Name = chunks[1];
		}
コード例 #2
0
ファイル: QualityLoader.cs プロジェクト: Cidolfas/Aster
		protected void CloseCurrent()
		{
			if (currentQuality == null)
				return;

			if (!library.ContainsKey(currentQuality.Name))
			{
#if DEBUG_LOAD
				Data.Log("Added Quality " + currentQuality.Name + " " + currentQuality.Title);
#endif
				library.Add(currentQuality.Name, currentQuality);
			}
			currentQuality = null;
		}