-
Notifications
You must be signed in to change notification settings - Fork 59
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
Conversation
src/st/lib_psp/unk_1D9E8.c
Outdated
if (g_CurrentEntity->ext.lesserDemon.unkB0 % 2) { | ||
g_CurrentEntity->palette = g_CurrentEntity->ext.lesserDemon.unkB2; | ||
} else { | ||
g_CurrentEntity->palette = PAL_DRA(0x819F); |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this 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
src/st/lib/e_lesser_demon.c
Outdated
if (g_CurrentEntity->ext.lesserDemon.unkB0 % 2) { | ||
g_CurrentEntity->palette = g_CurrentEntity->ext.lesserDemon.unkB2; | ||
} else { | ||
g_CurrentEntity->palette = PAL_OVL(0x819F); |
There was a problem hiding this comment.
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)
;
There was a problem hiding this comment.
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.
PSX: https://www.decomp.me/scratch/oWf8p
PSP: https://www.decomp.me/scratch/BzLiq