mirror of
https://github.com/aelurum/AssetStudio.git
synced 2026-11-14 11:18:47 -05:00
Move lib classes; Replace brotli decompressor
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
using Org.Brotli.Dec;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO.Compression;
|
||||
using System.Linq;
|
||||
|
||||
#if NETFRAMEWORK
|
||||
using AssetStudio.Libs.Brotli;
|
||||
#endif
|
||||
|
||||
namespace AssetStudio
|
||||
{
|
||||
public static class ImportHelper
|
||||
@@ -81,7 +84,11 @@ namespace AssetStudio
|
||||
using (reader)
|
||||
{
|
||||
var stream = new MemoryStream();
|
||||
#if NETFRAMEWORK
|
||||
using (var brotliStream = new BrotliInputStream(reader.BaseStream))
|
||||
#else
|
||||
using (var brotliStream = new BrotliStream(reader.BaseStream, CompressionMode.Decompress))
|
||||
#endif
|
||||
{
|
||||
brotliStream.CopyTo(stream);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user