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

Decompile DRA func_80133FCC #836

Merged
merged 10 commits into from
Dec 25, 2023
Merged

Decompile DRA func_80133FCC #836

merged 10 commits into from
Dec 25, 2023

Conversation

cram0
Copy link
Contributor

@cram0 cram0 commented Dec 12, 2023

Should be good to go ?

@sozud
Copy link
Collaborator

sozud commented Dec 12, 2023

I haven't checked this locally but I think it's more like this https://decomp.me/scratch/zc3Px

@cram0
Copy link
Contributor Author

cram0 commented Dec 12, 2023

I haven't checked this locally but I think it's more like this https://decomp.me/scratch/zc3Px

It is matching with the mentionned variable, thank you !

@sozud
Copy link
Collaborator

sozud commented Dec 13, 2023

From what I remember D_800BD240 and D_800BD228 aren't real variables, they are offsets within g_XaMusicConfigs.

src/pc/stubs.c Outdated
@@ -119,6 +119,9 @@ s32 D_800987B4;
u8 g_PadsRepeatTimer[BUTTON_COUNT * PAD_COUNT];
s32 D_80136410;
s32 D_80136414[];
s32 D_8013B65C;
s32 D_800BD228;
Copy link
Collaborator

Choose a reason for hiding this comment

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

g_XaMusicConfigs = 0x800BD224;

So use unk228 for D_800BD228 and 240 is probably the next element, by my count the struct is 16 bytes. So 0x800BD224+16+12 == g_XaMusicConfigs[pos + 1].unk22f?

Copy link
Contributor Author

@cram0 cram0 Dec 25, 2023

Choose a reason for hiding this comment

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

I didn't think about adding 1 to the sound pos, I finally got it to match with the field unk230 from that same structure, thanks !

Copy link
Owner

@Xeeynamo Xeeynamo left a comment

Choose a reason for hiding this comment

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

Looks dope. Thank you. And Merry Christmas 🎄

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.

Thanks for fixing the g_XaMusicConfigs thing

@sozud sozud merged commit ca66ee6 into Xeeynamo:master Dec 25, 2023
9 checks passed
Xeeynamo pushed a commit that referenced this pull request Aug 30, 2024
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.

3 participants