private static void SetAddFiles(IGameFile mainFile, FileLoadHandler handler, List <IGameFile> addFiles) { mainFile.SettingsFiles = string.Join(";", addFiles.Select(x => x.FileName)); mainFile.SettingsFilesIWAD = string.Join(";", addFiles.Intersect(handler.GetIWadFiles()).Select(x => x.FileName)); mainFile.SettingsFilesSourcePort = string.Join(";", addFiles.Intersect(handler.GetSourcePortFiles()).Select(x => x.FileName)); }
public List <IGameFile> GetSourcePortAdditionalFiles() { return(GetAdditionalFiles().Intersect(m_handler.GetSourcePortFiles()).ToList()); }