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]; }
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; }