Skip to content

Conversation

jodavies
Copy link
Collaborator

Commit 7ed2880 breaks compatibility of save files with previous versions. Restore compatibilty by adding manual padding to two of the structs, and also add a static_assert to the four structs which have commentary regarding save files to validate the size at compile time.


Adding the static asserts mean that the code doesn't compile for 32 bits; this means that sav files created by 32bit form are not compatible with 64bit form, and vice versa. I suppose we know this already.

I would like to keep the assertions; maybe it suffices to wrap them in #if ( BITSINWORD == 64 ) ?

Commit 7ed2880 breaks compatibility of save files with previous versions.
Restore compatibilty by adding manual padding to two of the structs, and
also add a static_assert to the four structs which have commentary
regarding save files to validate the size at compile time.
@coveralls
Copy link

Coverage Status

coverage: 56.764% (-0.02%) from 56.779%
when pulling 6b4aec5 on jodavies:fix-sav-regression
into 2aba64b on form-dev:master.

@jodavies jodavies merged commit 717ab4d into form-dev:master Oct 21, 2025
84 checks 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