Skip to content

Fix bfres and byml alignment in SarcAlignment.cs#1

Merged
ArchLeaders merged 1 commit intoEPD-Libraries:masterfrom
Amethyst-szs:master
Jul 15, 2025
Merged

Fix bfres and byml alignment in SarcAlignment.cs#1
ArchLeaders merged 1 commit intoEPD-Libraries:masterfrom
Amethyst-szs:master

Conversation

@Amethyst-szs
Copy link
Copy Markdown
Contributor

Encountered an issue when writing archives containing BFRES files, this PR adds a case to the SarcAlignment.cs estimate function, manually setting BFRES and BYML alignments.

Also includes an addition to the unit tests to ensure that archives containing BFRES files match byte-perfectly after being re-written.

All tests, including the new one, pass in this commit.

@ArchLeaders
Copy link
Copy Markdown
Member

Some formatting errors, but looks pretty sound, thanks!

I should probably add an external API to add custom alignment cases at runtime. I'd be curious if you have any thoughts on that.

Thanks again!

@ArchLeaders ArchLeaders merged commit b77ebf9 into EPD-Libraries:master Jul 15, 2025
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