Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor RegionFile to use BinaryReader and BinaryWriter #1159

Merged
merged 9 commits into from
Mar 6, 2025

Conversation

Argmaster
Copy link
Contributor

@Argmaster Argmaster commented Mar 5, 2025

  • reading
  • writing

Related to: #1156

@Argmaster Argmaster changed the title Refactor RegionFile to use BinaryReader Refactor RegionFile to use BinaryReader and BinaryWriter Mar 5, 2025
Copy link
Member

@IntegratedQuantum IntegratedQuantum left a comment

Choose a reason for hiding this comment

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

Just to be sure, before I merge this:
Did you test if it still works when loading an existing world?

@Argmaster
Copy link
Contributor Author

Argmaster commented Mar 6, 2025

I have checked it, twice, and honestly I am not sure. At first it was segfaulting while opening a world second time in one session, but after clean build it doesn't do that anymore, I don't see any obvious mistake in code either.

@IntegratedQuantum
Copy link
Member

Ok, then maybe try a few more times just to be sure.

@Argmaster
Copy link
Contributor Author

Did that, no reproduction anymore, I hope its for good 😝

@IntegratedQuantum
Copy link
Member

We really should just have some CI testing :​( But that's not really going to happen before #1097
Anything I guess we just go for it, since I also don't see anything wrong with the code.

@IntegratedQuantum IntegratedQuantum merged commit 9d786ab into PixelGuys:master Mar 6, 2025
1 check passed
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