/// <summary> /// </summary> /// <param name="games"></param> /// <param name="db"></param> public override void PreProcess(GameList games, GameDB db) { base.PreProcess(games, db); if (RemoveOtherGenres) { SortedSet <string> genreStrings = db.GetAllGenres(); _genreCategories = new SortedSet <Category>(); foreach (string cStr in genreStrings) { if (games.CategoryExists(string.IsNullOrEmpty(Prefix) ? cStr : Prefix + cStr) && !IgnoredGenres.Contains(cStr)) { _genreCategories.Add(games.GetCategory(cStr)); } } } }