mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-02-14 21:36:36 +00:00
Deal with end offset data
This commit is contained in:
@@ -156,7 +156,7 @@ namespace SabreTools.Serialization.Wrappers
|
||||
return null;
|
||||
|
||||
// HACK: Cache the end-of-header offset
|
||||
long endOffset = data.Position;
|
||||
long endOffset = data.Position - currentOffset;
|
||||
|
||||
data.Seek(currentOffset, SeekOrigin.Begin);
|
||||
return new WiseSectionHeader(model, data) { CompressedDataOffset = endOffset};
|
||||
|
||||
Reference in New Issue
Block a user