mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:07:52 +08:00
Fix formatting
This commit is contained in:
parent
a3213fc36d
commit
6a7e2dc258
@ -36,10 +36,12 @@ namespace osu.Game.Database
|
|||||||
|
|
||||||
public override void ExportToStream(TModel model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default)
|
public override void ExportToStream(TModel model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default)
|
||||||
{
|
{
|
||||||
using (var writer = new ZipWriter(outputStream, new ZipWriterOptions(CompressionType.Deflate)
|
var zipWriterOptions = new ZipWriterOptions(CompressionType.Deflate)
|
||||||
{
|
{
|
||||||
ArchiveEncoding = UseFixedEncoding ? ZipArchiveReader.DEFAULT_ENCODING : new ArchiveEncoding(Encoding.UTF8, Encoding.UTF8)
|
ArchiveEncoding = UseFixedEncoding ? ZipArchiveReader.DEFAULT_ENCODING : new ArchiveEncoding(Encoding.UTF8, Encoding.UTF8)
|
||||||
}))
|
};
|
||||||
|
|
||||||
|
using (var writer = new ZipWriter(outputStream, zipWriterOptions))
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int fileCount = model.Files.Count();
|
int fileCount = model.Files.Count();
|
||||||
|
Loading…
Reference in New Issue
Block a user