public static IEnumerable <string> GetOfficialDLCFiles(MEGame game) => Directory.Exists(MEDirectories.DLCPath(game)) ? Directory.EnumerateDirectories(MEDirectories.DLCPath(game)).Where(dir => IsOfficialDLC(dir, game)) : Enumerable.Empty <string>();
/// <summary> /// Gets the base DLC directory of each unpacked DLC/mod that will load in game (eg. C:\Program Files (x86)\Origin Games\Mass Effect 3\BIOGame\DLC\DLC_EXP_Pack001) /// Directory Override is used to use a custom path, for things like TFC Compactor, where the directory ME3Exp is pointing to may not be the one you want to use. /// </summary> /// <returns></returns> public static IEnumerable <string> GetEnabledDLCFiles(MEGame game, string directoryOverride = null) => Directory.Exists(MEDirectories.DLCPath(game)) ? Directory.EnumerateDirectories(directoryOverride ?? MEDirectories.DLCPath(game)).Where(dir => IsEnabledDLC(dir, game)) : Enumerable.Empty <string>();