Skip to content

read ExtendedReplayHeader#2847

Closed
salix5 wants to merge 2 commits into
masterfrom
salix5-patch-1
Closed

read ExtendedReplayHeader#2847
salix5 wants to merge 2 commits into
masterfrom
salix5-patch-1

Conversation

@salix5

@salix5 salix5 commented Jun 19, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@salix5 salix5 requested a review from Copilot June 19, 2025 08:45

This comment was marked as outdated.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@salix5 salix5 requested a review from Copilot June 19, 2025 08:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the replay file reader to fully re-read the header when encountering the REPLAY_ID_YRP2 format, rather than only reading the seed sequence.

  • Add conditional rewind and full-header read for YRP2 replays
  • Retain existing compressed-stream handling
Comments suppressed due to low confidence (1)

gframe/replay.cpp:127

  • [nitpick] Add a brief comment explaining why we must rewind and re-read the entire header for REPLAY_ID_YRP2, so that readers understand the format differences and special handling.
	if (pheader.base.id == REPLAY_ID_YRP2) {

Comment thread gframe/replay.cpp
Comment thread gframe/replay.cpp
@salix5 salix5 marked this pull request as draft June 19, 2025 09:40
@salix5

salix5 commented Jun 19, 2025

Copy link
Copy Markdown
Collaborator Author

I think it would work but can be improved.

@salix5 salix5 closed this Jun 19, 2025
@salix5 salix5 deleted the salix5-patch-1 branch June 19, 2025 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants