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

Revise for audio, texture, globalinit #1520

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Miepee
Copy link
Contributor

@Miepee Miepee commented Nov 14, 2023

Description

Slightly improves documentation
Removes default values

@@ -29,7 +31,7 @@ public void Serialize(UndertaleWriter writer)
public void Unserialize(UndertaleReader reader)
{
_code = new UndertaleResourceById<UndertaleCode, UndertaleChunkCODE>();
_code.Unserialize(reader); // TODO: reader.ReadUndertaleObject if one object starts with another one
Copy link
Member

Choose a reason for hiding this comment

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

Are you sure that it's safe?

Copy link
Contributor Author

@Miepee Miepee Nov 15, 2023

Choose a reason for hiding this comment

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

i have not tested it, but considering that ReadUndertaleObject(T obj) ends up also doing obj.Unserialize() it seemed fine to me.
I don't have any games that use global init to double check it.

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.

None yet

2 participants