mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-23 11:05:29 -05:00
Fix bug of unarchiving stored file in zip.
This commit is contained in:
@@ -371,7 +371,9 @@ namespace UniGLTF.Zip
|
||||
return new ArraySegment<byte>(Extract(found));
|
||||
|
||||
case CompressionMethod.Stored:
|
||||
return new ArraySegment<byte>(found.Bytes, found.RelativeOffsetOfLocalFileHeader, found.CompressedSize);
|
||||
var local = new LocalFileHeader(found.Bytes, found.RelativeOffsetOfLocalFileHeader);
|
||||
var pos = local.Offset + local.Length;
|
||||
return new ArraySegment<byte>(local.Bytes, pos, local.CompressedSize);
|
||||
}
|
||||
|
||||
throw new NotImplementedException(found.CompressionMethod.ToString());
|
||||
|
||||
Reference in New Issue
Block a user