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

Reduce header interdependency #2281

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Pepe20129
Copy link
Collaborator

Reduces some instances of headers needlessly depending on other headers, should help with BSS stability.

Comment on lines +48 to +51
s32 (*unk_2C)(struct MapMarkIconData***[3]);
s32 (*unk_30)(struct MapMarkIconData***[3]);
void (*unk_34)(struct PauseMapMarkData**[3]);
void (*unk_38)(struct PauseMapMarkData**[3]);
Copy link
Contributor

Choose a reason for hiding this comment

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

I find these and the void(**)(struct PlayState*) below much less readable than with the typedef. Is it really worth it?

@mzxrules
Copy link
Contributor

ultra64.h should not be split like this, it is a common n64 header file.

@fig02
Copy link
Collaborator

fig02 commented Nov 3, 2024

I also am not sure about the specific libultra includes that are occurring in these changes. Pretty sure the intent is that libultra provides a public interface and the game isnt supposed to be able to include specific stuff directly like this, but people more familiar with libultra would have to weigh in

@Pepe20129
Copy link
Collaborator Author

I just feel that including the entirety of libultra when a file only needs the ultratypes is overkill and some files already did it this way so I thought it'd be fine.

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.

4 participants