Skip to content

Add SharedString defaults to reflection database - #458

Merged
kennethloeffler merged 2 commits into
rojo-rbx:masterfrom
kennethloeffler:add-shared-string-defaults
Oct 23, 2024
Merged

Add SharedString defaults to reflection database#458
kennethloeffler merged 2 commits into
rojo-rbx:masterfrom
kennethloeffler:add-shared-string-defaults

Conversation

@kennethloeffler

Copy link
Copy Markdown
Member

After #414, SharedString values are now representable in serde formats, meaning that it's now possible for the reflection database to define defaults for SharedString properties. This will be useful for Rojo's syncback, when SharedString properties need to be written to JSON files: UpliftGames/rojo#6 (comment).

@kennethloeffler

Copy link
Copy Markdown
Member Author

Whoops, looks like some SharedString tests failed. I'll spin through in a bit to figure out what went wrong!

@Dekkonot

Copy link
Copy Markdown
Member

And after my approval too. 😔

This looks like it's just a consequence of adding defaults. Since they're present, we no longer generate an empty one for SharedString properties. This changes the index of other strings in the file though, since one is no longer present.

Comment thread rbx_binary/src/serializer/state.rs
@kennethloeffler
kennethloeffler merged commit de2b37b into rojo-rbx:master Oct 23, 2024
@kennethloeffler
kennethloeffler deleted the add-shared-string-defaults branch October 23, 2024 21:02
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