Fix stream position for zstd compression

This commit is contained in:
KillzXGaming 2020-03-17 17:08:24 -04:00
parent 08fee34f07
commit 717c4a499e

View file

@ -20,6 +20,7 @@ namespace Toolbox.Library
using (var reader = new FileReader(stream, true)) using (var reader = new FileReader(stream, true))
{ {
uint magic = reader.ReadUInt32(); uint magic = reader.ReadUInt32();
reader.Position = 0;
return magic == 0x28B52FFD || magic == 0xFD2FB528; return magic == 0x28B52FFD || magic == 0xFD2FB528;
} }
} }