mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-02-03 21:30:35 +00:00
[PR #48] [MERGED] Fix GCF extraction #76
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/SabreTools/SabreTools.Serialization/pull/48
Author: @HeroponRikiBestest
Created: 12/3/2025
Status: ✅ Merged
Merged: 12/4/2025
Merged by: @mnadareski
Base:
main← Head:fix-gcf📝 Commits (1)
ab3c4a1Fix GCF extraction📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
SabreTools.Serialization/Readers/GCF.cs(+1 -1)📄 Description
GCF extraction was broken with the big initialOffset change, commit
cd7e6ff98d (diff-6cb108a7e2e3e65bf9d0a75be0f79619f0aff47f2a96a9828dd6f67d288057af)GCF extraction previously read
afterMapPosition = data.Positionseveral times throughout the deserialization, to seek back to at relevant points. This commit changed some, but not all instances of afterMapPosition to initialOffset, resulting in a situation where the final offset reading went unused, and DataBlockHeader was being read from the previous offset.Mainly detailing this since there's still a remaining inconsistency in usage of afterMapPosition vs initialOffset in the file, and initialOffset seems strange to use after, well, the initial offset.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.