Skip to content

Decompile small game stubs#37

Closed
jefemagril wants to merge 13 commits into
mkst:masterfrom
jefemagril:small-fixes
Closed

Decompile small game stubs#37
jefemagril wants to merge 13 commits into
mkst:masterfrom
jefemagril:small-fixes

Conversation

@jefemagril

Copy link
Copy Markdown

Summary

  • Converts 36 small game section stubs from GLOBAL_ASM to matching C.
  • Adds splat/asm compatibility macros for newer generated directives.

Verification

  • docker run --rm -v "$PWD":/conker -w /conker/conker conker bash -lc 'make --jobs'
  • docker run --rm -v "$PWD":/conker -w /conker conker bash -lc 'make -C conker replace && make --jobs'
  • docker run --rm -v "$PWD":/conker -w /conker/conker conker bash -lc 'make progress'

Final ROM rebuild passed with build/conker.us.z64: OK.

Comment thread conker/src/game_161520.c Outdated

#pragma GLOBAL_ASM("asm/nonmatchings/game_161520/func_15137E10.s")
s32 func_15137E10(void *arg0) {
*(f32 *)((u8 *)arg0 + 0x74) = ((func_150ADA68() * 50.0f) + 580.0f) * D_800A4828;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Did you use AI for this? We shouldn't be doing pointer math.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes, and also I'm new to this decomp scene so I apologize. In this case, it's probably some yet-unknown struct? I went through and tried to make it more readable throughout and in cases where I couldn't (for example, maybe missing outer declarations context), I left them in commented out form.

…ructs instead of void pointers, enhancing type safety and code clarity.
…ty by replacing void pointers with specific structs, and update function implementations to match new signatures.
@mkst

mkst commented Jun 26, 2026

Copy link
Copy Markdown
Owner

I'm closing this as it doesn't add any value. You would have been better off decompiling these functions by hand.

@mkst mkst closed this Jun 26, 2026
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.

2 participants