-
Notifications
You must be signed in to change notification settings - Fork 55
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
Decompile ST0 EntityRelicOrb #1633
Conversation
src/st/st0/37308.c
Outdated
break; | ||
|
||
case 5: | ||
g_api.PlaySfx(0x618); |
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.
SFX_UNK_618
src/st/st0/37308.c
Outdated
break; | ||
|
||
case 8: | ||
isObtainedTextStored = self->ext.relicOrb.unk7C; |
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 kind of think this should be renamed temp or something since it's reused but it's fine either way
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.
very minor stuff, but overall it looks good. I did not realise ST0 had its own EntityRelicOrb
src/st/st0/37308.c
Outdated
msg = g_RelicOrbTexts[0]; | ||
} else { | ||
ch = (ch << 8) | *msg++; | ||
chPixSrc = g_api_func_80106A28(ch, 1); |
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.
chPixSrc = g_api_func_80106A28(ch, 1); | |
chPixSrc = g_api.func_80106A28(ch, 1); |
I realised src/st/entity_relic_orb.h
has the same issue
src/st/st0/37308.c
Outdated
case 0: | ||
|
||
InitializeEntity(g_InitializeData0); |
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.
case 0: | |
InitializeEntity(g_InitializeData0); | |
case 0: | |
InitializeEntity(g_InitializeData0); |
nit: let's try to avoid new empty lines when it does not make sense having them
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.
Good catch, this was from a removed block of code that exists in the main EntityRelicOrb and is omitted from ST0.
First working version of this.
Next steps will involve doing #ifdef to unify the function, but wanted to start by getting something in that matches by itself.