Skip to content

Decompile unk_02037C94 - #488

Open
ferwardle wants to merge 7 commits into
pret:masterfrom
ferwardle:decomp/unk_02037C94
Open

Decompile unk_02037C94#488
ferwardle wants to merge 7 commits into
pret:masterfrom
ferwardle:decomp/unk_02037C94

Conversation

@ferwardle

Copy link
Copy Markdown
Contributor

No description provided.

@ferwardle

Copy link
Copy Markdown
Contributor Author

Just realized I put the declaration for WM_GetLinkLevel in the wrong header file, but not sure where to move it (it's from nitro.s)

Comment thread include/unk_02037C94.h Outdated
Comment thread src/overlay_44_0222CDAC.c Outdated
Comment thread src/overlay_44_0222CDAC.c Outdated
Comment thread src/unk_02037C94.c Outdated
Comment thread src/unk_02037C94.c Outdated
Comment thread src/unk_02037C94.c Outdated
@ferwardle
ferwardle requested a review from PikalaxALT July 8, 2026 00:31

@PikalaxALT PikalaxALT left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

these, also resolve merge conflicts pls

Comment thread src/unk_02037C94.c Outdated
Comment thread src/unk_02037C94.c Outdated
Comment thread src/unk_02037C94.c Outdated
Comment thread src/unk_02037C94.c Outdated
Comment thread src/unk_02037C94.c Outdated
Comment thread src/unk_02037C94.c Outdated
Comment thread src/unk_02037C94.c Outdated
Comment thread src/unk_02037C94.c Outdated
Comment thread src/unk_02037C94.c Outdated
Comment thread src/unk_02037C94.c Outdated
@ferwardle
ferwardle requested a review from PikalaxALT July 21, 2026 04:20

@PikalaxALT PikalaxALT left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

more things i noticed, also merge conflicts again

Comment thread src/unk_02037C94.c

void sub_02038B9C(u32 arg0, u32 arg1, u8 *arg2) {
u32 i;
s32 var_r4 = 1;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
s32 var_r4 = 1;
BOOL var_r4 = TRUE;

and so on below

Comment thread src/unk_02037C94.c

void sub_02038C3C(u32 arg0, s32 arg1) {
switch (arg0) {
case 819:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

either all cases are decimal, or all case are hex

Comment thread src/unk_02037C94.c
Comment on lines +1187 to +1189
UnkStruct_sub_02039C6C *temp_r0 = Heap_Alloc(HEAP_ID_15, 104);
_021D4150 = temp_r0;
MI_CpuFill8(temp_r0, 0, 104);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
UnkStruct_sub_02039C6C *temp_r0 = Heap_Alloc(HEAP_ID_15, 104);
_021D4150 = temp_r0;
MI_CpuFill8(temp_r0, 0, 104);
_021D4150 = Heap_Alloc(HEAP_ID_15, sizeof(UnkStruct_sub_02039C6C));
MI_CpuFill8(_021D4150, 0, sizeof(UnkStruct_sub_02039C6C));

Comment thread src/unk_02037C94.c
Heap_CreateAtEnd(HEAP_ID_3, HEAP_ID_15, 256);
UnkStruct_sub_02039C6C *temp_r0 = Heap_Alloc(HEAP_ID_15, 104);
_021D4150 = temp_r0;
MI_CpuFill8(temp_r0, 0, 104);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ditto

Comment thread src/unk_02037C94.c
Heap_CreateAtEnd(HEAP_ID_3, HEAP_ID_15, 256);
UnkStruct_sub_02039C6C *temp_r0 = Heap_Alloc(HEAP_ID_15, 104);
_021D4150 = temp_r0;
MI_CpuFill8(temp_r0, 0, 104);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ditto

Comment thread src/unk_02037C94.c
Comment on lines +1768 to +1771
s32 temp_r4 = sub_020348A8(i);
s32 temp_r6 = sub_020348CC(i);
sub_02039FB8(arg0, temp_r4, temp_r6, PlayerProfile_GetLanguage(sub_02034818(i)));
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

could probably inline these calls

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