/// <summary> /// Adds the file. /// </summary> /// <param name="parameters">The parameters.</param> /// <exception cref="ArgumentNullException">parameters</exception> public void AddFile(ModMergeCompressExporterParameters parameters) { if (parameters == null) { throw new ArgumentNullException(nameof(parameters)); } queue.TryGetValue(parameters.QueueId, out var value); value.AddEntry(parameters.FileName, parameters.Stream); }
/// <summary> /// Adds the file. /// </summary> /// <param name="parameters">The parameters.</param> /// <exception cref="System.ArgumentNullException">parameters</exception> public void AddFile(ModMergeCompressExporterParameters parameters) { if (parameters == null) { throw new ArgumentNullException(nameof(parameters)); } queue.TryGetValue(parameters.QueueId, out var value); var entry = value.AddEntry(parameters.FileName, parameters.Stream); entry.AlternateEncoding = System.Text.Encoding.UTF8; entry.AlternateEncodingUsage = ZipOption.AsNecessary; }