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

Decompiled lib func_us_801BB8DC/func_psp_09255D78 #2253

Merged
merged 9 commits into from
Feb 24, 2025

Conversation

ProjectOblivion
Copy link
Contributor

if (g_CurrentEntity->ext.lesserDemon.unkB0 % 2) {
g_CurrentEntity->palette = g_CurrentEntity->ext.lesserDemon.unkB2;
} else {
g_CurrentEntity->palette = PAL_DRA(0x819F);
Copy link
Contributor

@gamezter gamezter Feb 24, 2025

Choose a reason for hiding this comment

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

I think this is actually PAL_OVL(0x19F)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They both match locally, what's the difference between the two? Aside from the obvious | 0x8000.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think OVL signifies that it 'belongs' to the overlay. I just know that there are currently no PAL_DRA(0x8...) in the project

Copy link
Contributor

Choose a reason for hiding this comment

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

Whoops sorry, that's my bad, wrote the wrong macro on my earlier comment

Copy link
Collaborator

@sozud sozud left a comment

Choose a reason for hiding this comment

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

Seems good once the PAL_OVL adjustment is done

if (g_CurrentEntity->ext.lesserDemon.unkB0 % 2) {
g_CurrentEntity->palette = g_CurrentEntity->ext.lesserDemon.unkB2;
} else {
g_CurrentEntity->palette = PAL_OVL(0x819F);
Copy link
Collaborator

Choose a reason for hiding this comment

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

PAL_OVL is already | 0x8000 so you want PAL_OVL(0x19F);

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops, I missed that in gamezter's comment. It makes a bit more sense to me now.

@sozud sozud merged commit 9d7db1d into Xeeynamo:master Feb 24, 2025
27 checks passed
@ProjectOblivion ProjectOblivion deleted the func_us_801BB8DC branch February 26, 2025 13:29
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